File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Describe 'Test HTTP Find-PSResource for ACR Server Protocol' -tags 'CI' {
12
12
$testModuleParentName = " test_parent_mod"
13
13
$testModuleDependencyName = " test_dependency_mod"
14
14
$testScriptName = " test-script"
15
+ $testModuleWithIncludes = " test-resourcewithincludes"
15
16
$ACRRepoName = " ACRRepo"
16
17
$ACRRepoUri = " https://psresourcegettest.azurecr.io"
17
18
Get-NewPSResourceRepositoryFile
@@ -262,6 +263,14 @@ Describe 'Test HTTP Find-PSResource for ACR Server Protocol' -tags 'CI' {
262
263
$res.ReleaseNotes.Length | Should -Not - Be 0
263
264
$res.Tags.Length | Should - Be 5
264
265
}
266
+
267
+ It " Should find resource and its associated Includes property" {
268
+ $res = Find-PSResource $testModuleWithIncludes - Repository $ACRRepoName
269
+ $res.Includes | Should -Not - BeNullOrEmpty
270
+ $res.Includes.Cmdlet | Should - Be " cmdlet1"
271
+ $res.Includes.Command | Should - Be " cmd1"
272
+ $res.Includes.DscResource | Should - Be " dsc1"
273
+ }
265
274
}
266
275
267
276
Describe ' Test Find-PSResource for MAR Repository' - tags ' CI' {
You can’t perform that action at this time.
0 commit comments