File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/UpdatePSResourceTests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
145
145
$isPkgUpdated = $false
146
146
foreach ($pkg in $res )
147
147
{
148
- if ([System.Version ]$pkg.Version -eq [System.Version ]" 3.0.0" )
148
+ if ([System.Version ]$pkg.Version -eq [System.Version ]" 3.0.0.0 " )
149
149
{
150
150
$isPkgUpdated = $true
151
151
}
@@ -174,7 +174,7 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
174
174
175
175
It " Update resource to explicit prerelease version using NuGet syntax" {
176
176
Install-PSResource - Name $testModuleName - Version " 1.0.0.0" - Repository $PSGalleryName - TrustRepository
177
- Update-PSResource - Name $testModuleName - Version " [ 5.2.5-alpha001] " - Prerelease - Repository $PSGalleryName - TrustRepository
177
+ Update-PSResource - Name $testModuleName - Version " 5.2.5-alpha001" - Prerelease - Repository $PSGalleryName - TrustRepository
178
178
$res = Get-InstalledPSResource - Name $testModuleName
179
179
$res | Should -Not - BeNullOrEmpty
180
180
$isPkgUpdated = $false
@@ -427,6 +427,7 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
427
427
Install-PSResource - Name " TestTestScript" - Version " 1.0" - Repository $PSGalleryName - TrustRepository
428
428
Update-PSResource - Name " TestTestScript" - Version " 1.3.1.1" - AuthenticodeCheck - Repository $PSGalleryName - TrustRepository - ErrorVariable err - ErrorAction SilentlyContinue
429
429
$err.Count | Should -Not - Be 0
430
- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource"
430
+ $err [0 ].FullyQualifiedErrorId | Should - Contain " GetAuthenticodeSignatureError,Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource"
431
+ $err [1 ].FullyQualifiedErrorId | Should - BeExactly " InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource"
431
432
}
432
433
}
You can’t perform that action at this time.
0 commit comments