File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Describe 'resource get tests' {
9
9
10
10
switch ($type ) {
11
11
' string' {
12
- $resource = ' Microsoft.Windows/registry '
12
+ $resource = ' Microsoft.Windows/Registry '
13
13
}
14
14
' json' {
15
15
$resource = dsc resource list * registry
@@ -44,7 +44,7 @@ Describe 'resource get tests' {
44
44
"Name": "ProductName"
45
45
}
46
46
'@
47
- $testError = & {$json | dsc resource get - r Microsoft.Windows/ registry get 2>&1 }
47
+ $testError = & {$json | dsc resource get - r Microsoft.Windows/ Registry get 2>&1 }
48
48
$testError [0 ] | SHould -match ' error:'
49
49
$LASTEXITCODE | Should - Be 2
50
50
}
Original file line number Diff line number Diff line change 3
3
4
4
Describe ' config schema tests' {
5
5
It ' return resource schema' - Skip:(! $IsWindows ) {
6
- $schema = dsc resource schema - r Microsoft.Windows/ registry
6
+ $schema = dsc resource schema - r Microsoft.Windows/ Registry
7
7
$LASTEXITCODE | Should - Be 0
8
8
$schema | Should -Not - BeNullOrEmpty
9
9
$schema = $schema | ConvertFrom-Json
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ Describe 'resource set tests' {
88
88
}
89
89
}
90
90
'@
91
- $out = $json | dsc resource set - r Microsoft.Windows/ registry
91
+ $out = $json | dsc resource set - r Microsoft.Windows/ Registry
92
92
$LASTEXITCODE | Should - Be 0
93
93
$result = $out | ConvertFrom-Json
94
94
$result.afterState.keyPath | Should - Be ' HKCU\1\2\3'
@@ -97,7 +97,7 @@ Describe 'resource set tests' {
97
97
$result.changedProperties | Should - Be @ (' valueName' , ' valueData' , ' _exist' )
98
98
($result.psobject.properties | Measure-Object ).Count | Should - Be 3
99
99
100
- $out = $json | dsc resource get - r Microsoft.Windows/ registry
100
+ $out = $json | dsc resource get - r Microsoft.Windows/ Registry
101
101
$LASTEXITCODE | Should - Be 0
102
102
$result = $out | ConvertFrom-Json
103
103
$result.actualState.keyPath | Should - Be ' HKCU\1\2\3'
@@ -111,7 +111,7 @@ Describe 'resource set tests' {
111
111
"_exist": false
112
112
}
113
113
'@
114
- $out = $json | dsc resource set - r Microsoft.Windows/ registry
114
+ $out = $json | dsc resource set - r Microsoft.Windows/ Registry
115
115
$LASTEXITCODE | Should - Be 0
116
116
$result = $out | ConvertFrom-Json
117
117
$result.afterState.keyPath | Should - BeExactly ' HKCU\1'
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Describe 'resource test tests' {
10
10
}
11
11
'@
12
12
$current = registry config get -- input $json
13
- $out = $current | dsc resource test - r Microsoft.Windows/ registry
13
+ $out = $current | dsc resource test - r Microsoft.Windows/ Registry
14
14
$LASTEXITCODE | Should - Be 0
15
15
$out = $out | ConvertFrom-Json
16
16
$out.inDesiredState | Should - BeTrue
@@ -27,7 +27,7 @@ Describe 'resource test tests' {
27
27
}
28
28
}
29
29
'@
30
- $out = $json | dsc resource test - r Microsoft.Windows/ registry
30
+ $out = $json | dsc resource test - r Microsoft.Windows/ Registry
31
31
$LASTEXITCODE | Should - Be 0
32
32
$out = $out | ConvertFrom-Json
33
33
$out.inDesiredState | Should - BeFalse
@@ -45,7 +45,7 @@ Describe 'resource test tests' {
45
45
}
46
46
}
47
47
'@
48
- $out = $json | dsc resource test - r Microsoft.Windows/ registry
48
+ $out = $json | dsc resource test - r Microsoft.Windows/ Registry
49
49
$LASTEXITCODE | Should - Be 0
50
50
$out = $out | ConvertFrom-Json
51
51
$out.inDesiredState | Should - BeFalse
You can’t perform that action at this time.
0 commit comments