We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d8c8b commit 3185157Copy full SHA for 3185157
powershell-adapter/Tests/win_powershellgroup.tests.ps1
@@ -220,8 +220,7 @@ resources:
220
It 'Set works with class-based PS DSC resources' {
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
$LASTEXITCODE | Should -Be 0 -Because (Get-Content -Path "$testdrive/error.log" -Raw | Out-String)
223
- $out.afterState.UserName | Should -BeExactly 'MyUser'
224
- $out.afterState.Password.Length | Should -Be 10
+ $out.afterState.inDesiredState | Should -Be $true -Because ($out | ConvertTo-Json | Out-String)
225
}
226
227
It 'Export works with class-based PS DSC resources' {
0 commit comments