Skip to content

Commit 8517684

Browse files
committed
add test
1 parent 5124950 commit 8517684

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/FindPSResourceTests/FindPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

267276
Describe 'Test Find-PSResource for MAR Repository' -tags 'CI' {

0 commit comments

Comments
 (0)