File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/UpdatePSResourceTests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,11 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
7474 }
7575
7676 It " Update resource installed given Name and Version (specific) parameters" {
77- Install-PSResource - Name $testModuleName - Version " 1.0.0.0" - Repository $PSGalleryName - TrustRepository
77+ $v1000 = Install-PSResource - Name $testModuleName - Version " 1.0.0.0" - Repository $PSGalleryName - TrustRepository - Reinstall - PassThru
78+ $v1000.Version | Should - Be " 1.0.0.0"
7879
79- Update-PSResource - Name $testModuleName - Version " 5.0.0.0" - Repository $PSGalleryName - TrustRepository
80+ $v5000 = Update-PSResource - Name $testModuleName - Version " 5.0.0.0" - Repository $PSGalleryName - TrustRepository - PassThru - Force
81+ $v5000.Version | Should - Be " 5.0.0.0"
8082 $res = Get-InstalledPSResource - Name $testModuleName
8183 $res | Should -Not - BeNullOrEmpty
8284 $isPkgUpdated = $false
You can’t perform that action at this time.
0 commit comments