File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,18 @@ Describe 'Discover extension tests' {
15
15
It ' Discover extensions' {
16
16
$out = dsc extension list | ConvertFrom-Json
17
17
$LASTEXITCODE | Should - Be 0
18
- $out.Count | Should - Be 2 - Because ($out | Out-String )
18
+ $out.Count | Should - Be 3 - Because ($out | Out-String )
19
19
$out [0 ].type | Should - Be ' Microsoft.DSC.Extension/Bicep'
20
20
$out [0 ].version | Should - Be ' 0.1.0'
21
21
$out [0 ].capabilities | Should - BeExactly @ (' import' )
22
22
$out [0 ].manifest | Should -Not - BeNullOrEmpty
23
- $out [1 ].type | Should - BeExactly ' Test /Discover'
24
- $out [1 ].version | Should - BeExactly ' 0.1.0'
23
+ $out [1 ].type | Should - Be ' Microsoft.Windows.Appx /Discover'
24
+ $out [1 ].version | Should - Be ' 0.1.0'
25
25
$out [1 ].capabilities | Should - BeExactly @ (' discover' )
26
- $out [1 ].manifest | Should -Not - BeNullOrEmpty
26
+ $out [2 ].type | Should - BeExactly ' Test/Discover'
27
+ $out [2 ].version | Should - BeExactly ' 0.1.0'
28
+ $out [2 ].capabilities | Should - BeExactly @ (' discover' )
29
+ $out [2 ].manifest | Should -Not - BeNullOrEmpty
27
30
}
28
31
29
32
It ' Filtering works for extension discovered resources' {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Describe 'Tests for Appx resource discovery' -Skip:(!$IsWindows){
7
7
$LASTEXITCODE | Should - Be 0
8
8
$found = $false
9
9
foreach ($resource in $out ) {
10
- if ($resource.directory.StartsWith (" $env: ProgramFiles \WindowsApps\Microsoft.DesiredStateConfiguration-Private " )) {
10
+ if ($resource.directory.StartsWith (" $env: ProgramFiles \WindowsApps" )) {
11
11
$found = $true
12
12
break
13
13
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Describe 'reboot_pending resource tests' {
25
25
26
26
$out | dsc resource get - r Microsoft.Windows/ RebootPending | ConvertFrom-Json
27
27
$LASTEXITCODE | Should - Be 0
28
- $out.actualState.reason | Should -Not - BeNullOrEmpty
28
+ $out.actualState.reason.count | Should - BeGreaterThan 0
29
29
} finally {
30
30
Remove-ItemProperty - Path $keyPath - Name $keyName - ErrorAction Ignore
31
31
}
You can’t perform that action at this time.
0 commit comments