File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,12 @@ Describe 'Test HTTP Find-PSResource for ACR Server Protocol' -tags 'CI' {
227
227
$res.Version | Should - Be " 1.0.0"
228
228
$res.Type.ToString () | Should - Be " Script"
229
229
}
230
+
231
+ It " Should find resource with dependency, given Name and Version" {
232
+ $res = Find-PSResource - Name " Az.Storage" - Version " 8.0.0" - Repository $ACRRepoName
233
+ $res.Dependencies.Length | Should - Be 1
234
+ $res.Dependencies [0 ].Name | Should - Be " Az.Accounts"
235
+ }
230
236
}
231
237
232
238
Describe ' Test Find-PSResource for MAR Repository' - tags ' CI' {
@@ -245,4 +251,10 @@ Describe 'Test Find-PSResource for MAR Repository' -tags 'CI' {
245
251
$res.Name | Should - Be " Az.Accounts"
246
252
$res.Version | Should - Be " 3.0.4"
247
253
}
254
+
255
+ It " Should find resource and its dependency given specific Name and Version" {
256
+ $res = Find-PSResource - Name " Az.Storage" - Version " 8.0.0" - Repository " MAR"
257
+ $res.Dependencies.Length | Should - Be 1
258
+ $res.Dependencies [0 ].Name | Should - Be " Az.Accounts"
259
+ }
248
260
}
You can’t perform that action at this time.
0 commit comments