@@ -164,11 +164,11 @@ Describe 'Discover extension tests' {
164164'@
165165 $resourceScript = @'
166166 $resource = @{
167- manifestPath = "$env:TestDrive" + [System.IO.Path]::DirectorySeparatorChar + 'invalidManifest.dsc.json'
167+ manifestPath = "$env:TestDrive" + [System.IO.Path]::DirectorySeparatorChar + 'invalidManifest.dsc.resource. json'
168168 }
169169 $resource | ConvertTo-Json -Compress
170170'@
171- $extendionManifest = @'
171+ $extensionManifest = @'
172172{
173173 "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
174174 "type": "Test/DiscoverInvalid",
@@ -187,9 +187,9 @@ Describe 'Discover extension tests' {
187187}
188188'@
189189
190- Set-Content - Path " $TestDrive /invalidManifest.dsc.json" - Value $invalidManifest
190+ Set-Content - Path " $TestDrive /invalidManifest.dsc.resource. json" - Value $invalidManifest
191191 Set-Content - Path " $TestDrive /discover.ps1" - Value $resourceScript
192- Set-Content - Path " $TestDrive /extension.dsc.extension.json" - Value $extendionManifest
192+ Set-Content - Path " $TestDrive /extension.dsc.extension.json" - Value $extensionManifest
193193 try {
194194 $env: DSC_RESOURCE_PATH = $TestDrive + [System.IO.Path ]::PathSeparator + $env: PATH
195195 $env: TestDrive = $TestDrive
@@ -199,7 +199,7 @@ Describe 'Discover extension tests' {
199199 foreach ($resource in $out ) {
200200 $resource.type | Should -Not - Be ' Test/InvalidManifest'
201201 }
202- (Get-Content - Path " $TestDrive /error.log" - Raw) | Should - BeLike " *Failed to load manifest '*invalidManifest.dsc.json':*" - Because (Get-Content - Path " $TestDrive /error.log" - Raw | Out-String )
202+ (Get-Content - Path " $TestDrive /error.log" - Raw) | Should - BeLike " *Extension 'Test/DiscoverInvalid' failed to load manifest '*invalidManifest.dsc.resource .json':*" - Because (Get-Content - Path " $TestDrive /error.log" - Raw | Out-String )
203203 } finally {
204204 $env: DSC_RESOURCE_PATH = $null
205205 $env: TestDrive = $null
0 commit comments