Skip to content

Commit cdef8d2

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix test
1 parent d75f8ed commit cdef8d2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

dsc/tests/dsc_discovery.tests.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Describe 'tests for resource discovery' {
7474
$resources.Count | Should -Be 0
7575
}
7676

77-
It 'warns on invalid semver' {
77+
It 'info on invalid semver' {
7878
$manifest = @'
7979
{
8080
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
@@ -94,9 +94,8 @@ Describe 'tests for resource discovery' {
9494
try {
9595
$env:DSC_RESOURCE_PATH = $testdrive
9696
Set-Content -Path "$testdrive/test.dsc.resource.json" -Value $manifest
97-
$out = dsc resource list 2>&1
98-
write-verbose -verbose ($out | Out-String)
99-
$out | Should -Match 'WARN.*?Validation.*?invalid version' -Because ($out | Out-String)
97+
$out = dsc -l info resource list 2>&1 | Out-String
98+
$out | Should -BeLike '*INFO*Validation*invalid version*' -Because ($out | Out-String)
10099
}
101100
finally {
102101
$env:DSC_RESOURCE_PATH = $oldPath

0 commit comments

Comments
 (0)