File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -256,3 +256,19 @@ Describe 'Test Find-PSResource for MAR Repository' -tags 'CI' {
256
256
$res.Dependencies [0 ].Name | Should - Be " Az.Accounts"
257
257
}
258
258
}
259
+
260
+ Describe ' Test Find-PSResource for unauthenticated ACR repository' - tags ' CI' {
261
+ BeforeAll {
262
+ Register-PSResourceRepository - Name " Unauthenticated" - Uri " https://psresourcegetnoauth.azurecr.io/" - ApiVersion " ContainerRegistry"
263
+ }
264
+
265
+ AfterAll {
266
+ Unregister-PSResourceRepository - Name " Unauthenticated"
267
+ }
268
+
269
+ It " Should find resource given specific Name, Version null" {
270
+ $res = Find-PSResource - Name " hello-world" - Repository " Unauthenticated"
271
+ $res.Name | Should - Be " hello-world"
272
+ $res.Version | Should - Be " 5.0.0"
273
+ }
274
+ }
You can’t perform that action at this time.
0 commit comments