Skip to content

Commit b947aba

Browse files
committed
fix registry resource case
1 parent 5726e95 commit b947aba

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

dsc/tests/dsc_get.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Describe 'resource get tests' {
99

1010
switch ($type) {
1111
'string' {
12-
$resource = 'Microsoft.Windows/registry'
12+
$resource = 'Microsoft.Windows/Registry'
1313
}
1414
'json' {
1515
$resource = dsc resource list *registry
@@ -44,7 +44,7 @@ Describe 'resource get tests' {
4444
"Name": "ProductName"
4545
}
4646
'@
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}
4848
$testError[0] | SHould -match 'error:'
4949
$LASTEXITCODE | Should -Be 2
5050
}

dsc/tests/dsc_schema.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Describe 'config schema tests' {
55
It 'return resource schema' -Skip:(!$IsWindows) {
6-
$schema = dsc resource schema -r Microsoft.Windows/registry
6+
$schema = dsc resource schema -r Microsoft.Windows/Registry
77
$LASTEXITCODE | Should -Be 0
88
$schema | Should -Not -BeNullOrEmpty
99
$schema = $schema | ConvertFrom-Json

dsc/tests/dsc_set.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Describe 'resource set tests' {
8888
}
8989
}
9090
'@
91-
$out = $json | dsc resource set -r Microsoft.Windows/registry
91+
$out = $json | dsc resource set -r Microsoft.Windows/Registry
9292
$LASTEXITCODE | Should -Be 0
9393
$result = $out | ConvertFrom-Json
9494
$result.afterState.keyPath | Should -Be 'HKCU\1\2\3'
@@ -97,7 +97,7 @@ Describe 'resource set tests' {
9797
$result.changedProperties | Should -Be @('valueName', 'valueData', '_exist')
9898
($result.psobject.properties | Measure-Object).Count | Should -Be 3
9999

100-
$out = $json | dsc resource get -r Microsoft.Windows/registry
100+
$out = $json | dsc resource get -r Microsoft.Windows/Registry
101101
$LASTEXITCODE | Should -Be 0
102102
$result = $out | ConvertFrom-Json
103103
$result.actualState.keyPath | Should -Be 'HKCU\1\2\3'
@@ -111,7 +111,7 @@ Describe 'resource set tests' {
111111
"_exist": false
112112
}
113113
'@
114-
$out = $json | dsc resource set -r Microsoft.Windows/registry
114+
$out = $json | dsc resource set -r Microsoft.Windows/Registry
115115
$LASTEXITCODE | Should -Be 0
116116
$result = $out | ConvertFrom-Json
117117
$result.afterState.keyPath | Should -BeExactly 'HKCU\1'

dsc/tests/dsc_test.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Describe 'resource test tests' {
1010
}
1111
'@
1212
$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
1414
$LASTEXITCODE | Should -Be 0
1515
$out = $out | ConvertFrom-Json
1616
$out.inDesiredState | Should -BeTrue
@@ -27,7 +27,7 @@ Describe 'resource test tests' {
2727
}
2828
}
2929
'@
30-
$out = $json | dsc resource test -r Microsoft.Windows/registry
30+
$out = $json | dsc resource test -r Microsoft.Windows/Registry
3131
$LASTEXITCODE | Should -Be 0
3232
$out = $out | ConvertFrom-Json
3333
$out.inDesiredState | Should -BeFalse
@@ -45,7 +45,7 @@ Describe 'resource test tests' {
4545
}
4646
}
4747
'@
48-
$out = $json | dsc resource test -r Microsoft.Windows/registry
48+
$out = $json | dsc resource test -r Microsoft.Windows/Registry
4949
$LASTEXITCODE | Should -Be 0
5050
$out = $out | ConvertFrom-Json
5151
$out.inDesiredState | Should -BeFalse

0 commit comments

Comments
 (0)