@@ -84,19 +84,19 @@ Describe 'PowerShell adapter resource tests' {
84
84
85
85
It ' Verify that ClearCache works in PSAdapter' {
86
86
# generate the cache
87
- $null = dsc resource list * - a Microsoft.DSC/ PowerShell
87
+ $null = dsc resource list ' * ' - a Microsoft.DSC/ PowerShell
88
88
# call the ClearCache operation
89
89
$scriptPath = Join-Path $PSScriptRoot ' ..' ' psDscAdapter' ' powershell.resource.ps1'
90
- $null = & $scriptPath - Operation ClearCache 2
90
+ $null = & $scriptPath - Operation ClearCache
91
91
# 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
93
93
$LASTEXITCODE | Should - Be 0
94
94
" $TestDrive /tracing.txt" | Should - FileContentMatchExactly ' Cache file not found'
95
95
}
96
96
97
97
It ' Verify that a new PS Cache version results in cache rebuid' {
98
98
# generate the cache
99
- $null = dsc resource list * - a Microsoft.DSC/ PowerShell
99
+ $null = dsc resource list ' * ' - a Microsoft.DSC/ PowerShell
100
100
# update the version in the cache file
101
101
$cacheFilePath = if ($IsWindows ) {
102
102
# PS 6+ on Windows
@@ -115,7 +115,7 @@ Describe 'PowerShell adapter resource tests' {
115
115
New-Item - Force - Path $cacheFilePath - Value $jsonCache - Type File | Out-Null
116
116
117
117
# 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
119
119
$LASTEXITCODE | Should - Be 0
120
120
" $TestDrive /tracing.txt" | Should - FileContentMatchExactly ' Incompartible version of cache in file'
121
121
}
0 commit comments