@@ -50,7 +50,7 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
5050 Install-PSResource - Name $Name - Repository $ACRRepoName - ErrorVariable err - ErrorAction SilentlyContinue
5151 $err.Count | Should - BeGreaterThan 0
5252 $err [0 ].FullyQualifiedErrorId | Should - BeExactly " $ErrorId ,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource"
53- $res = Get-InstalledPSResource $testModuleName
53+ $res = Get-InstalledPSResource $testModuleName - ErrorAction SilentlyContinue
5454 $res | Should - BeNullOrEmpty
5555 }
5656
@@ -110,7 +110,7 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
110110
111111 It " Install resource where version specified is a prerelease version" {
112112 # the resource has version "1.0", but querying with any equivalent version should work
113- Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.5-alpha" - Prerelease - Repository $ACRRepoName - TrustRepository
113+ Install-PSResource - Name $testModuleWith2DigitVersion - Version " 1.5-alpha" - Prerelease - Repository $ACRRepoName - TrustRepository - Verbose - Debug
114114 $res = Get-InstalledPSResource - Name $testModuleWith2DigitVersion
115115 $res | Should -Not - BeNullOrEmpty
116116 $res.Version | Should - Be " 1.5"
@@ -126,7 +126,7 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
126126
127127 It " Should not install resource given nonexistent name" {
128128 Install-PSResource - Name " NonExistentModule" - Repository $ACRRepoName - TrustRepository - ErrorVariable err - ErrorAction SilentlyContinue
129- $pkg = Get-InstalledPSResource " NonExistentModule"
129+ $pkg = Get-InstalledPSResource " NonExistentModule" - ErrorAction SilentlyContinue
130130 $pkg | Should - BeNullOrEmpty
131131 $err.Count | Should - BeGreaterThan 0
132132 $err [0 ].FullyQualifiedErrorId | Should - BeExactly " ResourceNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource"
0 commit comments