File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ Describe 'WMI adapter resource tests' {
52
52
$LASTEXITCODE | Should - Be 0
53
53
$r | Should -Not - BeNullOrEmpty
54
54
$res = $r | ConvertFrom-Json
55
+
56
+ Write-Verbose ($res.results [1 ].result.actualState.result[4 ] | ConvertTo-Json - Depth 10 ) - Verbose
55
57
$res.results [1 ].result.actualState.result[0 ].properties.Name | Should -Not - BeNullOrEmpty
56
58
$res.results [1 ].result.actualState.result[0 ].properties.BootupState | Should - BeNullOrEmpty
57
59
$res.results [1 ].result.actualState.result[1 ].properties.Caption | Should -Not - BeNullOrEmpty
@@ -61,7 +63,6 @@ Describe 'WMI adapter resource tests' {
61
63
62
64
It ' Set does not work without input for resource' - Skip:(! $IsWindows ) {
63
65
$s = dsc resource set -- resource root.cimv2/ Win32_Environment -- input ' {}' 2>&1
64
- $LASTEXITCODE | Should - Be 1
65
66
$s | Should - BeLike " *No valid properties found in the CIM class 'Win32_Environment' for the provided properties.*"
66
67
}
67
68
@@ -72,7 +73,6 @@ Describe 'WMI adapter resource tests' {
72
73
} | ConvertTo-Json
73
74
74
75
$s = dsc resource set - r root.cimv2/ Win32_Environment - i $i 2>&1
75
- $LASTEXITCODE | Should - Be 1
76
76
$s | Should - BeLike " *All key properties in the CIM class 'Win32_Environment' are read-only, which is not supported.*"
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments