Skip to content

Commit

Permalink
add databaseMailEnabled skip config #887
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioESSilva committed Apr 28, 2022
1 parent 6367f4c commit 1bcfe23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checks/Agentv5.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BeforeDiscovery {

Describe "Database Mail XPs" -Tag DatabaseMailEnabled, CIS, security -ForEach $InstancesToTest {
$DatabaseMailEnabled = Get-DbcConfigValue policy.security.DatabaseMailEnabled
$skip = Get-DbcConfigValue skip.instance.databasemailenabled
$skip = Get-DbcConfigValue skip.agent.databasemailenabled
Context "Testing Database Mail XPs on <_.Name>" {
It "Testing Database Mail XPs is set to $DatabaseMailEnabled on <_.Name>" -Skip:$skip {
$PSItem.Configuration.DatabaseMailEnabled | Should -Be $PSItem.ConfigValues.DatabaseMailEnabled -Because 'The Database Mail XPs setting should be set correctly'
Expand Down
1 change: 1 addition & 0 deletions internal/configurations/configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ Set-PSFConfig -Module dbachecks -Name skip.hadr.listener.tcpport -Validation boo
Set-PSFConfig -Module dbachecks -Name skip.hadr.replica.tcpport -Validation bool -Value $false -Initialize -Description "Skip the HADR Replica TCP port number (If port number is not standard across the entire AG architecture)"
Set-PSFConfig -Module dbachecks -Name skip.hadr.listener.pingcheck -Validation bool -Value $false -Initialize -Description "Skip the HADR listener ping test (especially useful for Azure and AWS)"
Set-PSFConfig -Module dbachecks -Name skip.instance.defaulttrace -Validation bool -Value $false -Initialize -Description "Skip the default trace check"
Set-PSFConfig -Module dbachecks -Name skip.agent.databasemailenabled -Validation bool -Value $false -Initialize -Description "Skip the long Database Mail Enabled agent check"
Set-PSFConfig -Module dbachecks -Name skip.agent.longrunningjobs -Validation bool -Value $false -Initialize -Description "Skip the long running agent jobs check"
Set-PSFConfig -Module dbachecks -Name skip.agent.lastjobruntime -Validation bool -Value $false -Initialize -Description "Skip the last agent job time check"
Set-PSFConfig -Module dbachecks -Name skip.instance.dac -Validation bool -Value $false -Initialize -Description "Skip Dedicated Administrator Connection (DAC) check"
Expand Down

0 comments on commit 1bcfe23

Please sign in to comment.