Skip to content

Commit 143ec3b

Browse files
Fix typo
1 parent d7f4434 commit 143ec3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/checks/Agentv5.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,18 @@ Describe "Agent Alerts" -Tag AgentAlert, Agent -ForEach $InstancesToTest {
228228
}
229229

230230
Describe "Job History Configuration" -Tag JobHistory, Agent -ForEach $InstancesToTest {
231-
$skipAgetJobHistory = ($__dbcconfig | Where-Object { $_.Name -eq 'skip.agent.JobHistory' }).Value
231+
$skipAgentJobHistory = ($__dbcconfig | Where-Object { $_.Name -eq 'skip.agent.JobHistory' }).Value
232232
[int]$minimumJobHistoryRows = ($__dbcconfig | Where-Object { $_.Name -eq 'agent.history.maximumhistoryrows' }).Value
233233

234234
if ($minimumJobHistoryRows -eq -1) {
235-
It "The maximum job history configuration should be set to disabled on <_.InstanceName>" -Skip:$skipAgetJobHistory -ForEach ($PSItem.JobHistory) {
235+
It "The maximum job history configuration should be set to disabled on <_.InstanceName>" -Skip:$skipAgentJobHistory -ForEach ($PSItem.JobHistory) {
236236
$PSItem.CurrentMaximumHistoryRows | Should -Be $PSItem.ExpectedMaximumHistoryRows -Because "Maximum job history configuration should be disabled"
237237
}
238238
} else {
239-
It "The maximum job history number of rows configuration should be greater or equal to <_.ExpectedMaximumHistoryRows> on <_.InstanceName>" -Skip:$skipAgetJobHistory -ForEach ($PSItem.JobHistory) {
239+
It "The maximum job history number of rows configuration should be greater or equal to <_.ExpectedMaximumHistoryRows> on <_.InstanceName>" -Skip:$skipAgentJobHistory -ForEach ($PSItem.JobHistory) {
240240
$PSItem.CurrentMaximumHistoryRows | Should -BeGreaterOrEqual $PSItem.ExpectedMaximumHistoryRows -Because "We expect the maximum job history row configuration to be greater than the configured setting <_.ExpectedMaximumHistoryRows>"
241241
}
242-
It "The maximum job history rows per job configuration should be greater or equal to <_.ExpectedMaximumJobHistoryRows> on <_.InstanceName>" -Skip:$skipAgetJobHistory -ForEach ($PSItem.JobHistory) {
242+
It "The maximum job history rows per job configuration should be greater or equal to <_.ExpectedMaximumJobHistoryRows> on <_.InstanceName>" -Skip:$skipAgentJobHistory -ForEach ($PSItem.JobHistory) {
243243
$PSItem.CurrentMaximumJobHistoryRows | Should -BeGreaterOrEqual $PSItem.ExpectedMaximumJobHistoryRows -Because "We expect the maximum job history row configuration per agent job to be greater than the configured setting <_.ExpectedMaximumJobHistoryRows>"
244244
}
245245
}

0 commit comments

Comments
 (0)