From 349783fe36e71eafe1142163577f7c19f4b2d378 Mon Sep 17 00:00:00 2001 From: "James Truher [MSFT]" Date: Wed, 19 Feb 2020 14:20:35 -0800 Subject: [PATCH] Make sure to test whether we skip a test using consistent logic (#11892) --- .../engine/Remoting/RemoteSession.Basic.Tests.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 b/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 index 7277735e11..7b0ce01969 100644 --- a/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 +++ b/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 @@ -44,8 +44,12 @@ Describe "Basic Auth over HTTP not allowed on Unix" -Tag @("CI") { It "New-PSSession should NOT throw a ConnectFailed exception when specifying Basic Auth over HTTPS on Unix" -skip:($IsWindows) { $platformInfo = Get-PlatformInfo - if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian") ) { - Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi" + if ( + ($platformInfo.Platform -match "alpine|raspbian") -or + ($platformInfo.Platform -eq "debian" -and ($platformInfo.Version -eq '10' -or $platformInfo.Version -eq '')) -or # debian 11 has empty Version ID + ($platformInfo.Platform -eq 'centos' -and $platformInfo.Version -eq '8') + ) { + Set-ItResult -Skipped -Because "MI library not available for Alpine, Raspberry Pi, Debian 10 and 11, and CentOS 8" return }