File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
205205 # Save resource that requires license
206206 It " Save resource that requires accept license with -AcceptLicense flag" {
207207 $pkg = Save-PSResource - Repository $PSGalleryName - TrustRepository - Path $SaveDir - Name $testModuleNameWithLicense - AcceptLicense - PassThru
208- $pkg = Get-InstalledPSResource - Path $SaveDir - Name $testModuleNameWithLicense
209208 $pkg.Name | Should - Be $testModuleNameWithLicense
210- $pkg.Version | Should - Be " 2.0.0.0 "
209+ $pkg.Version | Should - Be " 2.0"
211210 }
212211}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
7878 $v1000.Version | Should - Be " 1.0.0.0"
7979
8080 $v5000 = Update-PSResource - Name $testModuleName - Version " 5.0.0.0" - Repository $PSGalleryName - TrustRepository - PassThru - Force
81- $v5000.Version | Should - Be " 5.0.0.0"
81+ $v5000.Version | Should - Contain " 5.0.0.0"
8282 $res = Get-InstalledPSResource - Name $testModuleName
8383 $res | Should -Not - BeNullOrEmpty
8484 $isPkgUpdated = $false
You can’t perform that action at this time.
0 commit comments