File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ Describe 'PowerShell adapter resource tests' {
58
58
$LASTEXITCODE | Should - Be 0
59
59
$res = $r | ConvertFrom-Json
60
60
$res.actualState.result.properties.InDesiredState | Should - Be $True
61
+ $res.actualState.result.properties.InDesiredState.GetType ().Name | Should - Be " Boolean"
61
62
62
63
# verify that only properties with DscProperty attribute are returned
63
64
$propertiesNames = $res.actualState.result.properties.InDesiredState | Get-Member - MemberType NoteProperty | % Name
Original file line number Diff line number Diff line change @@ -480,9 +480,7 @@ function Invoke-DscOperation {
480
480
$dscResourceInstance.Set ()
481
481
}
482
482
' Test' {
483
- $Result = @ {}
484
- $raw_obj = $dscResourceInstance.Test ()
485
- $ValidProperties | ForEach-Object { $Result [$_ ] = $raw_obj .$_ }
483
+ $Result = $dscResourceInstance.Test ()
486
484
$addToActualState.properties = [psobject ]@ {' InDesiredState' = $Result }
487
485
}
488
486
' Export' {
You can’t perform that action at this time.
0 commit comments