mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Mark '-SkipCertificateCheck' tests pending on OSX for now (#3660)
Mark two tests pending on OSX due to #3648
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user