@@ -78,31 +78,31 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
78
78
79
79
It " Install resource when version contains different number of digits than the normalized version- 1 digit specified" {
80
80
# the resource has version "1.0", but querying with any equivalent version should work
81
- Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1" - Repository $ACRRepoName
81
+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1" - Repository $ACRRepoName - TrustRepository
82
82
$res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
83
83
$res | Should -Not - BeNullOrEmpty
84
84
$res.Version | Should - Be " 1.0"
85
85
}
86
86
87
87
It " Install resource when version contains different number of digits than the normalized version- 2 digits specified" {
88
88
# the resource has version "1.0", but querying with any equivalent version should work
89
- Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0" - Repository $ACRRepoName
89
+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0" - Repository $ACRRepoName - TrustRepository
90
90
$res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
91
91
$res | Should -Not - BeNullOrEmpty
92
92
$res.Version | Should - Be " 1.0"
93
93
}
94
94
95
95
It " Install resource when version contains different number of digits than the normalized version- 3 digits specified" {
96
96
# the resource has version "1.0", but querying with any equivalent version should work
97
- Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0.0" - Repository $ACRRepoName
97
+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0.0" - Repository $ACRRepoName - TrustRepository
98
98
$res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
99
99
$res | Should -Not - BeNullOrEmpty
100
100
$res.Version | Should - Be " 1.0"
101
101
}
102
102
103
103
It " Install resource when version contains different number of digits than the normalized version- 4 digits specified" {
104
104
# the resource has version "1.0", but querying with any equivalent version should work
105
- Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0.0.0" - Repository $ACRRepoName
105
+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.0.0.0" - Repository $ACRRepoName - TrustRepository
106
106
$res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
107
107
$res | Should -Not - BeNullOrEmpty
108
108
$res.Version | Should - Be " 1.0"
0 commit comments