Skip to content

Commit 32de326

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix tests which are running elevated in CI
1 parent e98fb16 commit 32de326

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dsc/tests/dsc_config_get.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Describe 'dsc config get tests' {
5353
$result.metadata.'Microsoft.DSC'.startDatetime | Should -Not -BeNullOrEmpty
5454
$result.metadata.'Microsoft.DSC'.endDatetime | Should -Not -BeNullOrEmpty
5555
$result.metadata.'Microsoft.DSC'.duration | Should -Not -BeNullOrEmpty
56-
$result.metadata.'Microsoft.DSC'.securityContext | Should -BeExactly 'Restricted'
56+
$result.metadata.'Microsoft.DSC'.securityContext | Should -Not -BeNullOrEmpty
5757
$LASTEXITCODE | Should -Be 0
5858
}
5959
}

dsc/tests/dsc_config_set.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Describe 'dsc config set tests' {
3434
$out.metadata.'Microsoft.DSC'.startDatetime | Should -Not -BeNullOrEmpty
3535
$out.metadata.'Microsoft.DSC'.endDatetime | Should -Not -BeNullOrEmpty
3636
$out.metadata.'Microsoft.DSC'.duration | Should -Not -BeNullOrEmpty
37-
$out.metadata.'Microsoft.DSC'.securityContext | Should -BeExactly 'Restricted'
37+
$out.metadata.'Microsoft.DSC'.securityContext | Should -Not -BeNullOrEmpty
3838

3939
}
4040
}

dsc/tests/dsc_group.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
startDatetime: *
1515
endDatetime: *
1616
duration: PT*S
17-
securityContext: Restricted
17+
securityContext: *
1818
results:
1919
- name: First Group
2020
type: Microsoft.DSC/Group

0 commit comments

Comments
 (0)