We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3932584 commit fa5ecf5Copy full SHA for fa5ecf5
dsc/tests/dsc_config_test.tests.ps1
@@ -21,15 +21,14 @@ Describe 'dsc config test tests' {
21
family: Windows
22
'@
23
24
- $out = dsc config test -i $configYaml | ConvertFrom-Json
25
- $LASTEXITCODE | Should -Be 0
26
-
+ $out = dsc config test -i $configYaml 2> "$TestDrive/trace.log" | ConvertFrom-Json
27
if ($IsWindows) {
+ $LASTEXITCODE | Should -Be 0
28
$out.results[0].result.inDesiredState | Should -BeTrue
29
- }
30
- else {
31
- $out.results[0].result.inDesiredState | Should -BeFalse
32
- $out.results[0].result.differingProperties | Should -Contain 'resources'
+ } else {
+ $LASTEXITCODE | Should -Be 2
+ $log = Get-Content "$TestDrive/trace.log" -Raw
+ $log | Should -Match '.*Assertion failed.*'
33
}
34
35
0 commit comments