File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ Describe 'tests for resource discovery' {
8484 $resources.Count | Should - Be 0
8585 }
8686
87- It ' warns on invalid semver' {
87+ It ' info on invalid semver' {
8888 $manifest = @'
8989 {
9090 "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
@@ -101,8 +101,10 @@ Describe 'tests for resource discovery' {
101101 }
102102'@
103103 Set-Content - Path " $testdrive /test.dsc.resource.json" - Value $manifest
104- $null = dsc resource list 2> " $testdrive /error.txt"
105- " $testdrive /error.txt" | Should - FileContentMatchExactly ' WARN.*?invalid semantic version' - Because (Get-Content - Raw " $testdrive /error.txt" )
104+ $null = dsc - l info resource list 2> " $testdrive /error.txt"
105+ $LASTEXITCODE | Should - Be 0
106+ $errorTxt = Get-Content - Raw " $testdrive /error.txt"
107+ $errorTxt | Should -Match ' INFO.*?invalid semantic version' - Because $errorTxt
106108 }
107109 }
108110
You can’t perform that action at this time.
0 commit comments