Skip to content

Commit cd74d32

Browse files
author
Andrew
committed
Fixed tests with asterisk special character
1 parent 1593854 commit cd74d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dsc/tests/dsc_args.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ resources:
220220
# return all native resources, providers, but not provider-based resources;
221221
# results for `dsc resource list` and `dsc resource list *` should be the same
222222
$a = dsc resource list -f json
223-
$b = dsc resource list * -f json
223+
$b = dsc resource list '*' -f json
224224
$a.Count | Should -Be $b.Count
225225
0..($a.Count-1) | %{
226226
$a_obj = $a[$_] | ConvertFrom-Json
@@ -245,7 +245,7 @@ resources:
245245

246246
It 'verify `dsc resource list * *`' {
247247
# everything should be in the results: all native resources, providers, and provider-based resources
248-
$a = dsc resource list * * -f json
248+
$a = dsc resource list '*' '*' -f json
249249
$resourceKindFound = $false
250250
$groupKindFound = $false
251251
$adapterKindFound = $false
@@ -281,7 +281,7 @@ resources:
281281

282282
It 'verify `dsc resource list * adapter_filter`' {
283283
# return all native resources, providers, and all resources of providers that match adapter_filter filter
284-
$a = dsc resource list * Test* -f json | ConvertFrom-Json
284+
$a = dsc resource list '*' Test* -f json | ConvertFrom-Json
285285
$adapterBasedResources = $a | ? {$_.requireAdapter}
286286
foreach ($r in $adapterBasedResources) {
287287
$r.requireAdapter.StartsWith("Test") | Should -Be $true

0 commit comments

Comments
 (0)