You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context "Testing SQL Engine Service on <_.Name>"-Skip:$skip {
410
+
It "SQL Engine service account should be <_.State> on <_.InstanceName>"-ForEach $PsItem.SqlEngineServiceAccount {
411
+
$PsItem.State| Should -Be $PsItem.ExpectedState-Because "We expected the SQL Engine service account to be $($PsItem.ExpectedState)"
412
+
}
413
+
It "SQL Engine service account should have a start mode of <_.ExpectedStartType> on instance <_.InstanceName>"-ForEach $PsItem.SqlEngineServiceAccount {
414
+
$PsItem.StartType| Should -Be $PsItem.ExpectedStartType-Because $Psitem.because
Set-PSFConfig-Module dbachecks -Name skip.instance.orphanedfile -Validation bool -Value $false-Initialize -Description "Skip the check for orphaned file"
294
294
Set-PSFConfig-Module dbachecks -Name skip.instance.servernamematch -Validation bool -Value $false-Initialize -Description "Skip the check for server name match"
295
295
Set-PSFConfig-Module dbachecks -Name skip.instance.supportedbuild -Validation bool -Value $false-Initialize -Description "Skip the checks for supported build"
296
+
# becuase we can't run this on core
297
+
if ($IsCoreCLR) {
298
+
$value=$true
299
+
} {
300
+
$value=$false
301
+
}
302
+
Set-PSFConfig-Module dbachecks -Name skip.instance.sqlengineserviceaccount -Validation bool -Value $value-Initialize -Description "Skip the checks for sql engine service account"
0 commit comments