Skip to content

Commit 0a41e82

Browse files
committed
Fix tests
1 parent ef8068c commit 0a41e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wmi-adapter/Tests/wmi.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Describe 'WMI adapter resource tests' {
5252
$LASTEXITCODE | Should -Be 0
5353
$r | Should -Not -BeNullOrEmpty
5454
$res = $r | ConvertFrom-Json
55+
56+
Write-Verbose ($res.results[1].result.actualState.result[4] | ConvertTo-Json -Depth 10) -Verbose
5557
$res.results[1].result.actualState.result[0].properties.Name | Should -Not -BeNullOrEmpty
5658
$res.results[1].result.actualState.result[0].properties.BootupState | Should -BeNullOrEmpty
5759
$res.results[1].result.actualState.result[1].properties.Caption | Should -Not -BeNullOrEmpty
@@ -61,7 +63,6 @@ Describe 'WMI adapter resource tests' {
6163

6264
It 'Set does not work without input for resource' -Skip:(!$IsWindows) {
6365
$s = dsc resource set --resource root.cimv2/Win32_Environment --input '{}' 2>&1
64-
$LASTEXITCODE | Should -Be 1
6566
$s | Should -BeLike "*No valid properties found in the CIM class 'Win32_Environment' for the provided properties.*"
6667
}
6768

@@ -72,7 +73,6 @@ Describe 'WMI adapter resource tests' {
7273
} | ConvertTo-Json
7374

7475
$s = dsc resource set -r root.cimv2/Win32_Environment -i $i 2>&1
75-
$LASTEXITCODE | Should -Be 1
7676
$s | Should -BeLike "*All key properties in the CIM class 'Win32_Environment' are read-only, which is not supported.*"
7777
}
7878

0 commit comments

Comments
 (0)