From 472c4772b11086b8e6ddd19d4ceb9f22414ecda7 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Fri, 24 Oct 2025 13:05:39 -0400 Subject: [PATCH] Fix broken Install-PSResource test with warning condition incorrect --- test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 b/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 index eea47eb71..4285e0479 100644 --- a/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 +++ b/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 @@ -557,7 +557,7 @@ Describe 'Test Install-PSResource for V2 Server scenarios' -tags 'CI' { # Test that AuthenticodeCheck parameter displays warning on non-Windows It "Install with AuthenticodeCheck on non-Windows should display warning" -Skip:(Get-IsWindows) { Install-PSResource -Name $testModuleName -Repository $PSGalleryName -TrustRepository -AuthenticodeCheck -WarningVariable warn -WarningAction SilentlyContinue - $warn[0] | Should -Contain "Authenticode check cannot be performed on Linux or MacOS" + $warn[0] | Should -Match "Authenticode check cannot be performed on Linux or MacOS" $res = Get-InstalledPSResource $testModuleName $res.Name | Should -Be $testModuleName }