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' {
74
74
}
75
75
76
76
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"
78
79
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"
80
82
$res = Get-InstalledPSResource - Name $testModuleName
81
83
$res | Should -Not - BeNullOrEmpty
82
84
$isPkgUpdated = $false
You can’t perform that action at this time.
0 commit comments