File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,8 @@ resources:
220
220
It ' Set works with class-based PS DSC resources' {
221
221
$out = dsc resource set - r PSClassResource/ PSClassResource -- input (@ {Name = ' TestName' ; Credential = @ {" UserName" = " MyUser" ; " Password" = " MyPassword" } } | ConvertTo-Json ) 2> " $testdrive /error.log" | ConvertFrom-Json
222
222
$LASTEXITCODE | Should - Be 0 - Because (Get-Content - Path " $testdrive /error.log" - Raw | Out-String )
223
- $out.afterstate.InDesiredState | Should - Be $true - Because ($out | ConvertTo-Json - Depth 10 | Out-String )
223
+ $out.afterState.UserName | Should - BeExactly ' MyUser'
224
+ $out.afterState.Password.Length | Should - Be 10
224
225
}
225
226
226
227
It ' Export works with class-based PS DSC resources' {
You can’t perform that action at this time.
0 commit comments