File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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' {
1212 $testModuleParentName = " test_parent_mod"
1313 $testModuleDependencyName = " test_dependency_mod"
1414 $testScriptName = " test-script"
15+ $testModuleWithIncludes = " test-resourcewithincludes"
1516 $ACRRepoName = " ACRRepo"
1617 $ACRRepoUri = " https://psresourcegettest.azurecr.io"
1718 Get-NewPSResourceRepositoryFile
@@ -262,6 +263,14 @@ Describe 'Test HTTP Find-PSResource for ACR Server Protocol' -tags 'CI' {
262263 $res.ReleaseNotes.Length | Should -Not - Be 0
263264 $res.Tags.Length | Should - Be 5
264265 }
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+ }
265274}
266275
267276Describe ' Test Find-PSResource for MAR Repository' - tags ' CI' {
You can’t perform that action at this time.
0 commit comments