Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit daeeb70

Browse files
anamnavianamnavi
and
anamnavi
authored
Fix broken Install-PSResource test with warning condition incorrect (#1899)
Co-authored-by: anamnavi <annavied@microsoft.com>
1 parent b85a9a8 commit daeeb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ Describe 'Test Install-PSResource for V2 Server scenarios' -tags 'CI' {
557557
# Test that AuthenticodeCheck parameter displays warning on non-Windows
558558
It "Install with AuthenticodeCheck on non-Windows should display warning" -Skip:(Get-IsWindows) {
559559
Install-PSResource -Name $testModuleName -Repository $PSGalleryName -TrustRepository -AuthenticodeCheck -WarningVariable warn -WarningAction SilentlyContinue
560-
$warn[0] | Should -Contain "Authenticode check cannot be performed on Linux or MacOS"
560+
$warn[0] | Should -Match "Authenticode check cannot be performed on Linux or MacOS"
561561
$res = Get-InstalledPSResource $testModuleName
562562
$res.Name | Should -Be $testModuleName
563563
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /