Skip to content

Commit 592710a

Browse files
Copilotjohlju
andcommitted
Add documentation and finalize elevation fix implementation
Co-authored-by: johlju <[email protected]>
1 parent 352f51e commit 592710a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Unit/Private/Invoke-ReportServerSetupAction.Tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ Describe 'Invoke-ReportServerSetupAction' -Tag 'Private' {
128128

129129
It 'Should throw a terminating error and not continue execution' {
130130
InModuleScope -ScriptBlock {
131+
# This test verifies the fix for issue #2070 where Assert-ElevatedUser
132+
# would throw an error but the function would continue executing
131133
{ Invoke-ReportServerSetupAction @mockDefaultParameters } |
132134
Should -Throw -ExpectedMessage '*This command must run in an elevated PowerShell session*'
133135
}

0 commit comments

Comments
 (0)