@@ -1730,46 +1730,51 @@ Describe "Invoke-WebRequest tests" -Tags "Feature", "RequireAdminOnWindows" {
17301730 # We put Tls13 tests at pending due to modern OS limitations.
17311731 # Tracking issue https://github.com/PowerShell/PowerShell/issues/13439
17321732
1733- $skipForTls1OnLinux = $IsLinux -and $ env: TF_BUILD
1733+ $skipForTls1 = $true
17341734
17351735 # # Test cases for the 1st 'It'
17361736 $testCases1 = @ (
17371737 @ { Test = @ {SslProtocol = ' Default' ; ActualProtocol = ' Default' }; Pending = $false }
1738- @ { Test = @ {SslProtocol = ' Tls' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
1739- @ { Test = @ {SslProtocol = ' Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
1738+ @ { Test = @ {SslProtocol = ' Tls' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
1739+ @ { Test = @ {SslProtocol = ' Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
17401740 @ { Test = @ {SslProtocol = ' Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
17411741 @ { Test = @ {SslProtocol = ' Tls13' ; ActualProtocol = ' Tls13' }; Pending = $true }
17421742 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
17431743 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls13' }; Pending = $true }
17441744 @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
1745- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
1746- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
1747- @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
1748- @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
1749- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
1745+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
1746+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
1747+ @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
1748+ @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
1749+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
17501750 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls13' ; ActualProtocol = ' Tls' }; Pending = $true }
1751- @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
1751+ @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
17521752 # Skipping intermediary protocols is not supported on all platforms
1753- @ { Test = @ {SslProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls' }; Pending = -not $IsWindows }
1753+ # Removed this as Tls now default to Tls12
1754+ # @{ Test = @{SslProtocol = 'Tls, Tls12'; ActualProtocol = 'Tls'}; Pending = -not $IsWindows }
17541755 @ { Test = @ {SslProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls12' }; Pending = -not $IsWindows }
17551756 )
17561757
17571758 $testCases2 = @ (
17581759 @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls13' }; Pending = $true }
1759- @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls12' }; Pending = $false }
1760+ # Removed this as Tls now default to Tls12
1761+ # @{ Test = @{IntendedProtocol = 'Tls'; ActualProtocol = 'Tls12'}; Pending = $false }
17601762 @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls11' }; Pending = $false }
17611763 @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls13' }; Pending = $true }
1762- @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls12' }; Pending = $false }
1764+ # Removed this as Tls now default to Tls12
1765+ # @{ Test = @{IntendedProtocol = 'Tls11'; ActualProtocol = 'Tls12'}; Pending = $false }
17631766 @ { Test = @ {IntendedProtocol = ' Tls12' ; ActualProtocol = ' Tls11' }; Pending = $false }
17641767 @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls' }; Pending = $false }
17651768 @ { Test = @ {IntendedProtocol = ' Tls12' ; ActualProtocol = ' Tls' }; Pending = $false }
17661769 @ { Test = @ {IntendedProtocol = ' Tls13' ; ActualProtocol = ' Tls' }; Pending = $true }
1767- @ { Test = @ {IntendedProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $false }
1770+ # Removed this as Tls now default to Tls12
1771+ # @{ Test = @{IntendedProtocol = 'Tls11, Tls12'; ActualProtocol = 'Tls'}; Pending = $false }
17681772 @ { Test = @ {IntendedProtocol = ' Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls' }; Pending = $true }
17691773 @ { Test = @ {IntendedProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls13' }; Pending = $true }
17701774 @ { Test = @ {IntendedProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls13' }; Pending = $true }
17711775 @ { Test = @ {IntendedProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $false }
1772- @ { Test = @ {IntendedProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls12' }; Pending = $false }
1776+ # Removed this as Tls now default to Tls12
1777+ # @{ Test = @{IntendedProtocol = 'Tls, Tls11'; ActualProtocol = 'Tls12'}; Pending = $false }
17731778 )
17741779 }
17751780
@@ -3327,45 +3332,50 @@ Describe "Invoke-RestMethod tests" -Tags "Feature", "RequireAdminOnWindows" {
33273332 # We put Tls13 tests at pending due to modern OS limitations.
33283333 # Tracking issue https://github.com/PowerShell/PowerShell/issues/13439
33293334
3330- $skipForTls1OnLinux = $IsLinux -and $ env: TF_BUILD
3335+ $skipForTls1 = $true
33313336
33323337 $testCases1 = @ (
33333338 @ { Test = @ {SslProtocol = ' Default' ; ActualProtocol = ' Default' }; Pending = $false }
3334- @ { Test = @ {SslProtocol = ' Tls' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
3335- @ { Test = @ {SslProtocol = ' Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
3339+ @ { Test = @ {SslProtocol = ' Tls' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
3340+ @ { Test = @ {SslProtocol = ' Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
33363341 @ { Test = @ {SslProtocol = ' Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
33373342 @ { Test = @ {SslProtocol = ' Tls13' ; ActualProtocol = ' Tls13' }; Pending = $true }
33383343 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
33393344 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls13' }; Pending = $true }
33403345 @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls12' }; Pending = $false }
3341- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
3342- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
3343- @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
3344- @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1OnLinux }
3345- @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
3346+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
3347+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
3348+ @ { Test = @ {SslProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
3349+ @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls11' }; Pending = $skipForTls1 }
3350+ @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
33463351 @ { Test = @ {SslProtocol = ' Tls, Tls11, Tls13' ; ActualProtocol = ' Tls' }; Pending = $true }
3347- @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1OnLinux }
3352+ @ { Test = @ {SslProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls' }; Pending = $skipForTls1 }
33483353 # Skipping intermediary protocols is not supported on all platforms
3349- @ { Test = @ {SslProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls' }; Pending = -not $IsWindows }
3354+ # Removed this as Tls now default to Tls12
3355+ # @{ Test = @{SslProtocol = 'Tls, Tls12'; ActualProtocol = 'Tls'}; Pending = -not $IsWindows }
33503356 @ { Test = @ {SslProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls12' }; Pending = -not $IsWindows }
33513357 )
33523358
33533359 $testCases2 = @ (
33543360 @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls13' }; Pending = $true }
3355- @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls12' }; Pending = $false }
3361+ # Removed this as Tls now default to Tls12
3362+ # @{ Test = @{IntendedProtocol = 'Tls'; ActualProtocol = 'Tls12'}; Pending = $false }
33563363 @ { Test = @ {IntendedProtocol = ' Tls' ; ActualProtocol = ' Tls11' }; Pending = $false }
33573364 @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls13' }; Pending = $true }
3358- @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls12' }; Pending = $false }
3365+ # Removed this as Tls now default to Tls12
3366+ # @{ Test = @{IntendedProtocol = 'Tls11'; ActualProtocol = 'Tls12'}; Pending = $false }
33593367 @ { Test = @ {IntendedProtocol = ' Tls12' ; ActualProtocol = ' Tls11' }; Pending = $false }
33603368 @ { Test = @ {IntendedProtocol = ' Tls11' ; ActualProtocol = ' Tls' }; Pending = $false }
33613369 @ { Test = @ {IntendedProtocol = ' Tls12' ; ActualProtocol = ' Tls' }; Pending = $false }
33623370 @ { Test = @ {IntendedProtocol = ' Tls13' ; ActualProtocol = ' Tls' }; Pending = $true }
3363- @ { Test = @ {IntendedProtocol = ' Tls11, Tls12' ; ActualProtocol = ' Tls' }; Pending = $false }
3371+ # Removed this as Tls now default to Tls12
3372+ # @{ Test = @{IntendedProtocol = 'Tls11, Tls12'; ActualProtocol = 'Tls'}; Pending = $false }
33643373 @ { Test = @ {IntendedProtocol = ' Tls11, Tls12, Tls13' ; ActualProtocol = ' Tls' }; Pending = $false }
33653374 @ { Test = @ {IntendedProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls13' }; Pending = $true }
33663375 @ { Test = @ {IntendedProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls13' }; Pending = $true }
33673376 @ { Test = @ {IntendedProtocol = ' Tls, Tls12' ; ActualProtocol = ' Tls11' }; Pending = $false }
3368- @ { Test = @ {IntendedProtocol = ' Tls, Tls11' ; ActualProtocol = ' Tls12' }; Pending = $false }
3377+ # Removed this as Tls now default to Tls12
3378+ # @{ Test = @{IntendedProtocol = 'Tls, Tls11'; ActualProtocol = 'Tls12'}; Pending = $false }
33693379 )
33703380 }
33713381
0 commit comments