Skip CIM ETS member test on older Windows platforms (#24681)

This commit is contained in:
Aditya Patwardhan
2024-12-19 10:10:17 -08:00
committed by GitHub
parent 0e62b7ae67
commit 617dbda8f4
@@ -672,7 +672,7 @@ ConstructorTestClass(int i, bool b)
$res.CompletionMatches[0].CompletionText | Should -BeExactly Cat
}
It 'Should complete cim ETS member added by shortname' -Skip:(!$IsWindows) {
It 'Should complete cim ETS member added by shortname' -Skip:(!$IsWindows -or (Test-IsWinServer2012R2) -or (Test-IsWindows2016)) {
$res = TabExpansion2 -inputScript '(Get-NetFirewallRule).Nam'
$res.CompletionMatches[0].CompletionText | Should -BeExactly 'Name'
}