Skip to content

Commit 3185157

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
update winps test
1 parent f1d8c8b commit 3185157

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

powershell-adapter/Tests/win_powershellgroup.tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ resources:
220220
It 'Set works with class-based PS DSC resources' {
221221
$out = dsc resource set -r PSClassResource/PSClassResource --input (@{Name = 'TestName'; Credential = @{"UserName" = "MyUser"; "Password" = "MyPassword"} } | ConvertTo-Json) 2> "$testdrive/error.log" | ConvertFrom-Json
222222
$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
223+
$out.afterState.inDesiredState | Should -Be $true -Because ($out | ConvertTo-Json | Out-String)
225224
}
226225

227226
It 'Export works with class-based PS DSC resources' {

0 commit comments

Comments
 (0)