Skip to content

Commit e5f49bf

Browse files
author
Andrew
committed
Code 2
1 parent ec2a716 commit e5f49bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

powershell-adapter/Tests/powershellgroup.resource.tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ Describe 'PowerShell adapter resource tests' {
8484

8585
It 'Verify that ClearCache works in PSAdapter' {
8686
# generate the cache
87-
$null = dsc resource list * -a Microsoft.DSC/PowerShell
87+
$null = dsc resource list '*' -a Microsoft.DSC/PowerShell
8888
# call the ClearCache operation
8989
$scriptPath = Join-Path $PSScriptRoot '..' 'psDscAdapter' 'powershell.resource.ps1'
90-
$null = & $scriptPath -Operation ClearCache 2
90+
$null = & $scriptPath -Operation ClearCache
9191
# verify that PSAdapter does not find the cache
92-
dsc -l debug resource list * -a Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
92+
dsc -l debug resource list '*' -a Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
9393
$LASTEXITCODE | Should -Be 0
9494
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly 'Cache file not found'
9595
}
9696

9797
It 'Verify that a new PS Cache version results in cache rebuid' {
9898
# generate the cache
99-
$null = dsc resource list * -a Microsoft.DSC/PowerShell
99+
$null = dsc resource list '*' -a Microsoft.DSC/PowerShell
100100
# update the version in the cache file
101101
$cacheFilePath = if ($IsWindows) {
102102
# PS 6+ on Windows
@@ -115,7 +115,7 @@ Describe 'PowerShell adapter resource tests' {
115115
New-Item -Force -Path $cacheFilePath -Value $jsonCache -Type File | Out-Null
116116

117117
# verify that a new PS Cache version results in cache rebuid
118-
dsc -l debug resource list * -a Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
118+
dsc -l debug resource list '*' -a Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
119119
$LASTEXITCODE | Should -Be 0
120120
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly 'Incompartible version of cache in file'
121121
}

0 commit comments

Comments
 (0)