Skip to content

Commit b0e2a81

Browse files
committed
make the resource list test more dynamic based on platform.
1 parent e064410 commit b0e2a81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dsc/tests/dsc_resource_list.tests.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ Describe 'Tests for listing resources' {
1717
}
1818

1919
It 'dsc resource list --tags "<tags>" and --description "<description> work' -TestCases @(
20-
@{ tags = 'linux'; description = $null; expectedCount = 2; expectedType = @('DSC.PackageManagement/Apt', 'Microsoft/OSInfo') }
20+
if ($IsLinux) {
21+
@{ tags = 'linux'; description = $null; expectedCount = 2; expectedType = @('DSC.PackageManagement/Apt', 'Microsoft/OSInfo') }
22+
}
23+
else {
24+
@{ tags = 'linux'; description = $null; expectedCount = 1; expectedType = 'Microsoft/OSInfo' }
25+
}
2126
@{ tags = $null; description = 'operating system'; expectedCount = 1; expectedType = 'Microsoft/OSInfo' }
2227
@{ tags = 'linux'; description = 'operating system'; expectedCount = 1; expectedType = 'Microsoft/OSInfo' }
2328
@{ tags = 'notfound'; description = 'operating system'; expectedCount = 0; expectedType = $null }

0 commit comments

Comments
 (0)