File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
test/InstallPSResourceTests Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
108
108
$res.Version | Should - Be " 1.0"
109
109
}
110
110
111
+ It " Install resource when version contains different number of digits than the normalized version- 4 digits specified and prerelease" {
112
+ # the resource has version "1.0", but querying with any equivalent version should work
113
+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.5.0.0" - Repository $ACRRepoName - TrustRepository
114
+ $res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
115
+ $res | Should -Not - BeNullOrEmpty
116
+ $res.Version | Should - Be " 1.5"
117
+ $res.Prerelease | Should - Be " alpha"
118
+ }
119
+
111
120
It " Install multiple resources by name" {
112
121
$pkgNames = @ ($testModuleName , $testModuleName2 )
113
122
Install-PSResource - Name $pkgNames - Repository $ACRRepoName - TrustRepository
You can’t perform that action at this time.
0 commit comments