@@ -24,29 +24,37 @@ Describe 'Discover extension tests' {
2424 $out = dsc extension list | ConvertFrom-Json
2525 $LASTEXITCODE | Should - Be 0
2626 if ($IsWindows ) {
27- $out.Count | Should - Be 3 - Because ($out | Out-String )
27+ $out.Count | Should - Be 4 - Because ($out | Out-String )
2828 $out [0 ].type | Should - Be ' Microsoft.DSC.Extension/Bicep'
2929 $out [0 ].version | Should - Be ' 0.1.0'
3030 $out [0 ].capabilities | Should - BeExactly @ (' import' )
3131 $out [0 ].manifest | Should -Not - BeNullOrEmpty
32- $out [1 ].type | Should - Be ' Microsoft.Windows.Appx/Discover '
33- $out [1 ].version | Should - Be ' 0.1.0'
34- $out [1 ].capabilities | Should - BeExactly @ (' discover ' )
32+ $out [1 ].type | Should - BeExactly ' Microsoft.DSC.Extension/BicepParameters '
33+ $out [1 ].version | Should - BeExactly ' 0.1.0'
34+ $out [1 ].capabilities | Should - BeExactly @ (' import ' )
3535 $out [1 ].manifest | Should -Not - BeNullOrEmpty
36- $out [2 ].type | Should - BeExactly ' Test /Discover'
37- $out [2 ].version | Should - BeExactly ' 0.1.0'
36+ $out [2 ].type | Should - Be ' Microsoft.Windows.Appx /Discover'
37+ $out [2 ].version | Should - Be ' 0.1.0'
3838 $out [2 ].capabilities | Should - BeExactly @ (' discover' )
3939 $out [2 ].manifest | Should -Not - BeNullOrEmpty
40+ $out [3 ].type | Should - BeExactly ' Test/Discover'
41+ $out [3 ].version | Should - BeExactly ' 0.1.0'
42+ $out [3 ].capabilities | Should - BeExactly @ (' discover' )
43+ $out [3 ].manifest | Should -Not - BeNullOrEmpty
4044 } else {
41- $out.Count | Should - Be 2 - Because ($out | Out-String )
45+ $out.Count | Should - Be 3 - Because ($out | Out-String )
4246 $out [0 ].type | Should - Be ' Microsoft.DSC.Extension/Bicep'
4347 $out [0 ].version | Should - Be ' 0.1.0'
4448 $out [0 ].capabilities | Should - BeExactly @ (' import' )
4549 $out [0 ].manifest | Should -Not - BeNullOrEmpty
46- $out [1 ].type | Should - BeExactly ' Test/Discover '
50+ $out [1 ].type | Should - BeExactly ' Microsoft.DSC.Extension/BicepParameters '
4751 $out [1 ].version | Should - BeExactly ' 0.1.0'
48- $out [1 ].capabilities | Should - BeExactly @ (' discover ' )
52+ $out [1 ].capabilities | Should - BeExactly @ (' import ' )
4953 $out [1 ].manifest | Should -Not - BeNullOrEmpty
54+ $out [2 ].type | Should - BeExactly ' Test/Discover'
55+ $out [2 ].version | Should - BeExactly ' 0.1.0'
56+ $out [2 ].capabilities | Should - BeExactly @ (' discover' )
57+ $out [2 ].manifest | Should -Not - BeNullOrEmpty
5058 }
5159 }
5260
0 commit comments