@@ -12,7 +12,7 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'CI' {
1212 $testModuleName2 = " test_local_mod2"
1313 $testScriptName = " test_ado_script"
1414 $ADORepoName = " PSGetTestingPublicFeed"
15- $ADORepoUri = " https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell -public-test/nuget/v3/index.json"
15+ $ADORepoUri = " https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/psresourceget -public-test-ci /nuget/v3/index.json"
1616 Get-NewPSResourceRepositoryFile
1717 Register-PSResourceRepository - Name $ADORepoName - Uri $ADORepoUri
1818 }
@@ -54,7 +54,7 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'CI' {
5454
5555 It " Install multiple resources by name" {
5656 $pkgNames = @ ($testModuleName , $testModuleName2 )
57- Install-PSResource - Name $pkgNames - Repository $ADORepoName - TrustRepository
57+ Install-PSResource - Name $pkgNames - Repository $ADORepoName - TrustRepository
5858 $pkg = Get-InstalledPSResource $pkgNames
5959 $pkg.Name | Should - Be $pkgNames
6060 }
@@ -64,7 +64,7 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'CI' {
6464 $pkg = Get-InstalledPSResource " NonExistantModule"
6565 $pkg | Should - BeNullOrEmpty
6666 $err.Count | Should - BeGreaterThan 0
67- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource"
67+ $err [0 ].FullyQualifiedErrorId | Should - BeExactly " InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource"
6868 }
6969
7070 # Do some version testing, but Find-PSResource should be doing thorough testing
@@ -76,21 +76,21 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'CI' {
7676 }
7777
7878 It " Should install resource given name and exact version with bracket syntax" {
79- Install-PSResource - Name $testModuleName - Version " [1.0.0]" - Repository $ADORepoName - TrustRepository
79+ Install-PSResource - Name $testModuleName - Version " [1.0.0]" - Repository $ADORepoName - TrustRepository
8080 $pkg = Get-InstalledPSResource $testModuleName
8181 $pkg.Name | Should - Be $testModuleName
8282 $pkg.Version | Should - Be " 1.0.0"
8383 }
8484
8585 It " Should install resource given name and exact range inclusive [1.0.0, 5.0.0]" {
86- Install-PSResource - Name $testModuleName - Version " [1.0.0, 5.0.0]" - Repository $ADORepoName - TrustRepository
86+ Install-PSResource - Name $testModuleName - Version " [1.0.0, 5.0.0]" - Repository $ADORepoName - TrustRepository
8787 $pkg = Get-InstalledPSResource $testModuleName
8888 $pkg.Name | Should - Be $testModuleName
8989 $pkg.Version | Should - Be " 5.0.0"
9090 }
9191
9292 It " Should install resource given name and exact range exclusive (1.0.0, 5.0.0)" {
93- Install-PSResource - Name $testModuleName - Version " (1.0.0, 5.0.0)" - Repository $ADORepoName - TrustRepository
93+ Install-PSResource - Name $testModuleName - Version " (1.0.0, 5.0.0)" - Repository $ADORepoName - TrustRepository
9494 $pkg = Get-InstalledPSResource $testModuleName
9595 $pkg.Name | Should - Be $testModuleName
9696 $pkg.Version | Should - Be " 3.0.0"
@@ -118,15 +118,15 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'CI' {
118118 }
119119
120120 It " Install resource with latest (including prerelease) version given Prerelease parameter" {
121- Install-PSResource - Name $testModuleName - Prerelease - Repository $ADORepoName - TrustRepository
121+ Install-PSResource - Name $testModuleName - Prerelease - Repository $ADORepoName - TrustRepository
122122 $pkg = Get-InstalledPSResource $testModuleName
123123 $pkg.Name | Should - Be $testModuleName
124124 $pkg.Version | Should - Be " 5.2.5"
125125 $pkg.Prerelease | Should - Be " alpha001"
126126 }
127127
128128 It " Install resource via InputObject by piping from Find-PSresource" {
129- Find-PSResource - Name $testModuleName - Repository $ADORepoName | Install-PSResource - TrustRepository
129+ Find-PSResource - Name $testModuleName - Repository $ADORepoName | Install-PSResource - TrustRepository
130130 $pkg = Get-InstalledPSResource $testModuleName
131131 $pkg.Name | Should - Be $testModuleName
132132 $pkg.Version | Should - Be " 5.0.0"
@@ -238,15 +238,15 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'ManualValidatio
238238 It " Install resource under AllUsers scope - Unix only" - Skip:(Get-IsWindows ) {
239239 Install-PSResource - Name $testModuleName - Repository $TestGalleryName - Scope AllUsers
240240 $pkg = Get-Module $testModuleName - ListAvailable
241- $pkg.Name | Should - Be $testModuleName
241+ $pkg.Name | Should - Be $testModuleName
242242 $pkg.Path.Contains (" /usr/" ) | Should - Be $true
243243 }
244244
245245 # This needs to be manually tested due to prompt
246246 It " Install resource that requires accept license without -AcceptLicense flag" {
247247 Install-PSResource - Name $testModuleName2 - Repository $TestGalleryName
248- $pkg = Get-InstalledPSResource $testModuleName2
249- $pkg.Name | Should - Be $testModuleName2
248+ $pkg = Get-InstalledPSResource $testModuleName2
249+ $pkg.Name | Should - Be $testModuleName2
250250 $pkg.Version | Should - Be " 0.0.1.0"
251251 }
252252
@@ -255,7 +255,7 @@ Describe 'Test Install-PSResource for V3Server scenarios' -tags 'ManualValidatio
255255 Set-PSResourceRepository PoshTestGallery - Trusted:$false
256256
257257 Install-PSResource - Name $testModuleName - Repository $TestGalleryName - confirm:$false
258-
258+
259259 $pkg = Get-Module $testModuleName - ListAvailable
260260 $pkg.Name | Should - Be $testModuleName
261261
0 commit comments