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 DBA Operators exists on <_.Name>" {
74
77
It "The Operator <_.ExpectedOperatorName> exists on <_.Name>"-Skip:$skipOperatorName-ForEach ($PSItem.Operator|Where-Object ExpectedOperatorName -NE'null') {
# (Connect-DbaInstance -SqlInstance $psitem).JobServer.AlertSystem.FailSafeOperator | Should -Be $failsafeoperator -Because 'The failsafe operator will ensure that any job failures will be notified to someone if not set explicitly'
Context "Testing failsafe operator exists on <_.Name>" {
91
+
It "The failsafe operator <_.FailSafeOperator.ExpectedFailSafeOperator> exists on <_.Name>"-Skip:$skipFailsafeOperator {
92
+
$PSItem.FailSafeOperator.ActualFailSafeOperator| Should -Be $PSItem.FailSafeOperator.ExpectedFailSafeOperator-Because 'The failsafe operator will ensure that any job failures will be notified to someone if not set explicitly'
# Context "Testing failsafe operator exists on <_.Name>" {
104
+
# It "The Failsafe Operator <_.ExpectedFailSafeOperator> exists on <_.Name>" -Skip:$skipFailsafeOperator -ForEach ($PSItem.AlertSystem | Where-Object ExpectedFailSafeOperator -NE 'null') {
105
+
# $PSItem.ExpectedFailSafeOperator | Should -Be $PSItem.ActualFailSafeOperator -Because 'The failsafe operator will ensure that any job failures will be notified to someone if not set explicitly'
106
+
# }
107
+
# }
108
+
#}
101
109
102
110
# Describe "Database Mail Profile" -Tags DatabaseMailProfile, $filename {
Set-PSFConfig-Module dbachecks -Name skip.agent.databasemailenabled -Validation bool -Value $false-Initialize -Description "Skip the Database Mail Enabled agent check"
339
339
Set-PSFConfig-Module dbachecks -Name skip.agent.servicestartmode -Validation bool -Value $false-Initialize -Description "Skip the Agent Service State check"
340
340
Set-PSFConfig-Module dbachecks -Name skip.agent.servicestate -Validation bool -Value $false-Initialize -Description "Skip the Agent Service Start Mode check"
341
-
Set-PSFConfig-Module dbachecks -Name skip.agent.operatorname-Validation bool -Value $false-Initialize -Description "Skip the Agent Operator Name check"
0 commit comments