@@ -190,7 +190,7 @@ Describe 'Test HTTP Find-PSResource for ADO V2 Server Protocol' -tags 'CI' {
190190 $res = Find-PSResource - Name $testModuleName - Tag $requiredTag - Repository $ADOV2RepoName - ErrorVariable err - ErrorAction SilentlyContinue
191191 $res | Should - BeNullOrEmpty
192192 $err.Count | Should - BeGreaterThan 0
193- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " PackageNotFound ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
193+ $err [0 ].FullyQualifiedErrorId | Should - BeExactly " GetCountFromResponseFailure ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
194194 }
195195
196196 It " Find resource that satisfies given Name and Tag property (multiple tags)" {
@@ -208,7 +208,7 @@ Describe 'Test HTTP Find-PSResource for ADO V2 Server Protocol' -tags 'CI' {
208208 $res = Find-PSResource - Name $testModuleName - Tag $requiredTags - Repository $ADOV2RepoName - ErrorVariable err - ErrorAction SilentlyContinue
209209 $res | Should - BeNullOrEmpty
210210 $err.Count | Should - BeGreaterThan 0
211- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " PackageNotFound ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
211+ $err [0 ].FullyQualifiedErrorId | Should - BeExactly " GetCountFromResponseFailure ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
212212 }
213213
214214 It " Find all resources that satisfy Name pattern and have specified Tag (single tag)" {
@@ -244,7 +244,7 @@ Describe 'Test HTTP Find-PSResource for ADO V2 Server Protocol' -tags 'CI' {
244244 $res = Find-PSResource - Name $testModuleName - Version " 5.0.0" - Tag $requiredTag - Repository $ADOV2RepoName - ErrorVariable err - ErrorAction SilentlyContinue
245245 $res | Should - BeNullOrEmpty
246246 $err.Count | Should - BeGreaterThan 0
247- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " PackageNotFound ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
247+ $err [0 ].FullyQualifiedErrorId | Should - BeExactly " GetCountFromResponseFailure ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
248248 }
249249
250250 It " Find resource that satisfies given Name, Version and Tag property (multiple tags)" {
@@ -264,6 +264,6 @@ Describe 'Test HTTP Find-PSResource for ADO V2 Server Protocol' -tags 'CI' {
264264 $res = Find-PSResource - Name $testModuleName - Version " 5.0.0" - Tag $requiredTags - Repository $ADOV2RepoName - ErrorVariable err - ErrorAction SilentlyContinue
265265 $res | Should - BeNullOrEmpty
266266 $err.Count | Should - BeGreaterThan 0
267- $err [0 ].FullyQualifiedErrorId | Should - BeExactly " PackageNotFound ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
267+ $err [0 ].FullyQualifiedErrorId | Should - BeExactly " GetCountFromResponseFailure ,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
268268 }
269269}
0 commit comments