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 0cf2833 commit 3576c17Copy full SHA for 3576c17
dsc/tests/dsc_discovery.tests.ps1
@@ -243,6 +243,9 @@ Describe 'tests for resource discovery' {
243
$out = dsc resource get -r 'Test/MyEcho' -i '{"output":"Custom"}' 2> "$testdrive/error.txt" | ConvertFrom-Json
244
$LASTEXITCODE | Should -Be 0
245
$out.actualState.output | Should -BeExactly 'Custom'
246
+ dsc resource get -r 'Microsoft.DSC.Debug/Echo' -i '{"output":"Custom"}' 2> "$testdrive/error.txt" | ConvertFrom-Json
247
+ $LASTEXITCODE | Should -Be 7
248
+ Get-Content -Raw -Path "$testdrive/error.txt" | Should -Match "ERROR.*?Resource not found"
249
}
250
finally {
251
$env:DSC_RESOURCE_PATH = $oldPath
0 commit comments