8000 add -TrustRepository to install tests · PowerShell/PSResourceGet@35c9f94 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35c9f94

Browse files
committed
add -TrustRepository to install tests
1 parent 177af24 commit 35c9f94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/InstallPSResourceTests/InstallPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,31 +78,31 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
7878

7979
It "Install resource when version contains different number of digits than the normalized version- 1 digit specified" {
8080
# 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
8282
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
8383
$res | Should -Not -BeNullOrEmpty
8484
$res.Version | Should -Be "1.0"
8585
}
8686

8787
It "Install resource when version contains different number of digits than the normalized version- 2 digits specified" {
8888
# 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
9090
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
9191
$res | Should -Not -BeNullOrEmpty
9292
$res.Version | Should -Be "1.0"
9393
}
9494

9595
It "Install resource when version contains different number of digits than the normalized version- 3 digits specified" {
9696
# 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
9898
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
9999
$res | Should -Not -BeNullOrEmpty
100100
$res.Version | Should -Be "1.0"
101101
}
102102

103103
It "Install resource when version contains different number of digits than the normalized version- 4 digits specified" {
104104
# 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
106106
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
107107
$res | Should -Not -BeNullOrEmpty
108108
$res.Version | Should -Be "1.0"

0 commit comments

Comments
 (0)
0