@@ -24,33 +24,41 @@ Describe 'Discover extension tests' {
24
24
$out = dsc extension list | ConvertFrom-Json
25
25
$LASTEXITCODE | Should - Be 0
26
26
if ($IsWindows ) {
27
- $out.Count | Should - Be 4 - Because ($out | Out-String )
27
+ $out.Count | Should - Be 5 - Because ($out | Out-String )
28
28
$out [0 ].type | Should - Be ' Microsoft.DSC.Extension/Bicep'
29
29
$out [0 ].version | Should - Be ' 0.1.0'
30
30
$out [0 ].capabilities | Should - BeExactly @ (' import' )
31
31
$out [0 ].manifest | Should -Not - BeNullOrEmpty
32
- $out [1 ].type | Should - Be ' Microsoft.DSC.Extension/WindowsPowerShell '
32
+ $out [1 ].type | Should - Be ' Microsoft.DSC.Extension/PowerShell '
33
33
$out [1 ].version | Should - Be ' 0.1.0'
34
34
$out [1 ].capabilities | Should - BeExactly @ (' import' )
35
35
$out [1 ].manifest | Should -Not - BeNullOrEmpty
36
- $out [2 ].type | Should - Be ' Microsoft.Windows.Appx/Discover '
36
+ $out [2 ].type | Should - Be ' Microsoft.DSC.Extension/WindowsPowerShell '
37
37
$out [2 ].version | Should - Be ' 0.1.0'
38
- $out [2 ].capabilities | Should - BeExactly @ (' discover ' )
38
+ $out [2 ].capabilities | Should - BeExactly @ (' import ' )
39
39
$out [2 ].manifest | Should -Not - BeNullOrEmpty
40
- $out [3 ].type | Should - BeExactly ' Test /Discover'
41
- $out [3 ].version | Should - BeExactly ' 0.1.0'
40
+ $out [3 ].type | Should - Be ' Microsoft.Windows.Appx /Discover'
41
+ $out [3 ].version | Should - Be ' 0.1.0'
42
42
$out [3 ].capabilities | Should - BeExactly @ (' discover' )
43
43
$out [3 ].manifest | Should -Not - BeNullOrEmpty
44
+ $out [4 ].type | Should - BeExactly ' Test/Discover'
45
+ $out [4 ].version | Should - BeExactly ' 0.1.0'
46
+ $out [4 ].capabilities | Should - BeExactly @ (' discover' )
47
+ $out [4 ].manifest | Should -Not - BeNullOrEmpty
44
48
} else {
45
- $out.Count | Should - Be 2 - Because ($out | Out-String )
49
+ $out.Count | Should - Be 3 - Because ($out | Out-String )
46
50
$out [0 ].type | Should - Be ' Microsoft.DSC.Extension/Bicep'
47
51
$out [0 ].version | Should - Be ' 0.1.0'
48
52
$out [0 ].capabilities | Should - BeExactly @ (' import' )
49
53
$out [0 ].manifest | Should -Not - BeNullOrEmpty
50
- $out [1 ].type | Should - BeExactly ' Test/Discover '
51
- $out [1 ].version | Should - BeExactly ' 0.1.0'
52
- $out [1 ].capabilities | Should - BeExactly @ (' discover ' )
54
+ $out [1 ].type | Should - Be ' Microsoft.DSC.Extension/PowerShell '
55
+ $out [1 ].version | Should - Be ' 0.1.0'
56
+ $out [1 ].capabilities | Should - BeExactly @ (' import ' )
53
57
$out [1 ].manifest | Should -Not - BeNullOrEmpty
58
+ $out [2 ].type | Should - BeExactly ' Test/Discover'
59
+ $out [2 ].version | Should - BeExactly ' 0.1.0'
60
+ $out [2 ].capabilities | Should - BeExactly @ (' discover' )
61
+ $out [2 ].manifest | Should -Not - BeNullOrEmpty
54
62
}
55
63
}
56
64
0 commit comments