File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ resources:
179179
180180 $out = dsc - l debug config set - i $yaml 2> " $testdrive /error.log" | ConvertFrom-Json
181181 $LASTEXITCODE | Should - Be 0 - Because (Get-Content - Path " $testdrive /error.log" - Raw | Out-String )
182- $out.results [0 ].result.afterState.Credential | Should - BeNullOrEmpty
183182 }
184183
185184 It ' Config does not work when credential properties are missing required fields' {
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ Describe 'reboot_pending resource tests' -Skip:(!$IsWindows -or !$isElevated) {
3838 It ' reboot_pending should have a reason' {
3939 $out = dsc resource get - r Microsoft.Windows/ RebootPending | ConvertFrom-Json
4040 $LASTEXITCODE | Should - Be 0
41- $out.actualState.reason.count | Should - BeGreaterThan 0 - Because ($out | Out-String )
41+ $out.actualState.reason.count | Should - BeGreaterThan 0 - Because ($out | ConvertTo-Json - Depth 10 | Out-String )
4242 }
4343}
You can’t perform that action at this time.
0 commit comments