File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,5 @@ resources:
6
6
resources :
7
7
- name : computer system
8
8
type : root.cimv2/Win32_ComputerSystem
9
- properties :
10
9
- name : network adapter
11
10
type : root.cimv2/Win32_NetworkAdapter
12
- properties :
Original file line number Diff line number Diff line change @@ -44,4 +44,14 @@ Describe 'WMI adapter resource tests' {
44
44
$res.results [0 ].result.actualState[1 ].BiosCharacteristics | Should -Not - BeNull
45
45
$res.results [0 ].result.actualState[2 ].NumberOfLogicalProcessors | Should -Not - BeNull
46
46
}
47
+
48
+ It ' Example config works' - Skip:(! $IsWindows ) {
49
+ $configPath = Join-Path $PSScriptRoot ' ..\..\dsc\examples\wmi.dsc.yaml'
50
+ $r = dsc config get - p $configPath
51
+ $LASTEXITCODE | Should - Be 0
52
+ $r | Should -Not - BeNullOrEmpty
53
+ $res = $r | ConvertFrom-Json
54
+ $res.results [0 ].result.actualState[0 ].Model | Should -Not - BeNullOrEmpty
55
+ $res.results [0 ].result.actualState[1 ].Description | Should -Not - BeNullOrEmpty
56
+ }
47
57
}
You can’t perform that action at this time.
0 commit comments