From 08e855556cff42274a5903799b826e78d0cebd3f Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 27 Apr 2017 18:15:59 -0700 Subject: [PATCH] Mark '-SkipCertificateCheck' tests pending on OSX for now (#3660) Mark two tests pending on OSX due to #3648 --- .../Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index 66792bd7e9..d4c2d524d7 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 @@ -434,7 +434,9 @@ Describe "Invoke-WebRequest tests" -Tags "Feature" { $jsonContent.headers.'User-Agent' | Should Match "WindowsPowerShell" } - It "Validate Invoke-WebRequest -SkipCertificateCheck" { + ## 'HttpClientHandler.ServerCertificateCustomValidationCallback' currently doesn't work in netcoreapp2.0 on Mac at all. + ## This is tracked by powershell issue #3648. + It "Validate Invoke-WebRequest -SkipCertificateCheck" -Pending:$IsOSX { # validate that exception is thrown for URI with expired certificate $command = "Invoke-WebRequest -Uri 'https://expired.badssl.com'" @@ -788,7 +790,9 @@ Describe "Invoke-RestMethod tests" -Tags "Feature" { $jsonContent.headers.'User-Agent' | Should Match "WindowsPowerShell" } - It "Validate Invoke-RestMethod -SkipCertificateCheck" { + ## 'HttpClientHandler.ServerCertificateCustomValidationCallback' currently doesn't work in netcoreapp2.0 on Mac at all. + ## This is tracked by powershell issue #3648. + It "Validate Invoke-RestMethod -SkipCertificateCheck" -Pending:$IsOSX { # HTTP method HEAD must be used to not retrieve an unparsable HTTP body # validate that exception is thrown for URI with expired certificate