Skip to content

Commit e2e85fd

Browse files
committed
Fix failing test
1 parent 8da5b0b commit e2e85fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

powershell-adapter/Tests/powershellgroup.config.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,6 @@ Describe 'PowerShell adapter resource tests' {
271271
$out = dsc config get -i $yaml 2>&1 | Out-String
272272
$LASTEXITCODE | Should -Be 2
273273
$out | Should -Not -BeNullOrEmpty
274-
$out | Should -BeLike "*ERROR*The PSCredential property 'Credential' is missing required fields*"
274+
$out | Should -BeLike "*ERROR*Credential object 'Credential' requires both 'username' and 'password' properties*"
275275
}
276276
}

powershell-adapter/Tests/win_powershellgroup.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ resources:
228228
$out = dsc -l trace config get -i $yaml 2>&1 | Out-String
229229
$LASTEXITCODE | Should -Be 2
230230
$out | Should -Not -BeNullOrEmpty
231-
$out | Should -BeLike "*ERROR*The PSCredential property 'Credential' is missing required fields*"
231+
$out | Should -BeLike "*ERROR*Credential object 'Credential' requires both 'username' and 'password' properties*"
232232
}
233233
}

0 commit comments

Comments
 (0)