@@ -52,7 +52,7 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
5252 @ {
5353 MockParameterSetName = ' __AllParameterSets'
5454 # cSpell: disable-next
55- MockExpectedParameters = ' [-MediaPath] <string> [-InstanceName] <string> [-Features] <string[]> [ [-PBEngSvcAccount] <string>] [[-PBEngSvcPassword] <securestring>] [[-PBEngSvcStartupType] <string>] [[-PBStartPortRange] <ushort>] [[-PBEndPortRange] <ushort>] [[-Timeout] <uint>] [-Enu] [-PBScaleOut] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]'
55+ MockExpectedParameters = ' [-MediaPath] <string> [-InstanceName] <string> [[-PBEngSvcAccount] <string>] [[-PBEngSvcPassword] <securestring>] [[-PBEngSvcStartupType] <string>] [[-PBStartPortRange] <ushort>] [[-PBEndPortRange] <ushort>] [[-Timeout] <uint>] [-Enu] [-PBScaleOut] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]'
5656 }
5757 ) {
5858 $result = (Get-Command - Name ' Repair-SqlDscServer' ).ParameterSets |
@@ -94,8 +94,6 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
9494 $mockDefaultParameters = @ {
9595 MediaPath = ' \SqlMedia'
9696 InstanceName = ' INSTANCE'
97- # Intentionally using both upper- and lower-case in the value.
98- Features = ' SqlEngine'
9997 ErrorAction = ' Stop'
10098 }
10199 }
@@ -106,7 +104,6 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
106104
107105 Should - Invoke - CommandName Start-SqlSetupProcess - ParameterFilter {
108106 $ArgumentList | Should - MatchExactly ' \/ACTION=Repair'
109- $ArgumentList | Should - MatchExactly ' \/FEATURES=SQLENGINE'
110107 $ArgumentList | Should - MatchExactly ' \/INSTANCENAME="INSTANCE"' # cspell: disable-line
111108
112109 # Return $true if none of the above throw.
@@ -121,7 +118,6 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
121118
122119 Should - Invoke - CommandName Start-SqlSetupProcess - ParameterFilter {
123120 $ArgumentList | Should - MatchExactly ' \/ACTION=Repair'
124- $ArgumentList | Should - MatchExactly ' \/FEATURES=SQLENGINE'
125121 $ArgumentList | Should - MatchExactly ' \/INSTANCENAME="INSTANCE"' # cspell: disable-line
126122
127123 # Return $true if none of the above throw.
@@ -148,8 +144,6 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
148144 $repairSqlDscServerParameters = @ {
149145 MediaPath = ' \SqlMedia'
150146 InstanceName = ' INSTANCE'
151- # Intentionally using both upper- and lower-case in the value.
152- Features = ' SqlEngine'
153147 Force = $true
154148 PBStartPortRange = 16450
155149 PBEndPortRange = 16460
@@ -204,8 +198,6 @@ Describe 'Repair-SqlDscServer' -Tag 'Public' {
204198 $mockDefaultParameters = @ {
205199 MediaPath = ' \SqlMedia'
206200 InstanceName = ' INSTANCE'
207- # Intentionally using both upper- and lower-case in the value.
208- Features = ' SqlEngine'
209201 Force = $true
210202 ErrorAction = ' Stop'
211203 }
0 commit comments