Skip to content

Commit

Permalink
i dunno
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 25, 2024
1 parent ebe6660 commit 8e085ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/Copy-DbaAgentAlert.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ Describe "Copy-DbaAgentAlert" -Tag "IntegrationTests" {
}

It "Skips alerts where destination is missing the operator" {
$splat = @{
$splatDupe = @{
Source = $TestConfig.instance2
Destination = $TestConfig.instance3
Alert = $alert2
WarningAction = 'SilentlyContinue'
}
$results = Copy-DbaAgentAlert @splat
$results.Status | Should -BeExactly @('Skipped', 'Skipped')
$results = Copy-DbaAgentAlert @splatDupe
@($results.Status) | Should -Be @("Skipped", "Skipped")
}

It "Doesn't overwrite existing alerts" {
Expand Down
6 changes: 3 additions & 3 deletions tests/Copy-DbaAgentOperator.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ Describe "Copy-DbaAgentOperator" -Tag "IntegrationTests" {
}
$results = Copy-DbaAgentOperator @splat
$results.Count | Should -Be 2
$results.Status | Should -Be @("Successful", "Successful")
@($results.Status) | Should -Be @("Successful", "Successful")
}

It "Returns one result that's skipped when copying an existing operator" {
$splat = @{
$splet = @{
Source = $TestConfig.instance2
Destination = $TestConfig.instance3
Operator = "dbatoolsci_operator"
}
$skippedResults = Copy-DbaAgentOperator @splat
$skippedResults = Copy-DbaAgentOperator @splet
$skippedResults.Status | Should -Be "Skipped"
}
}
Expand Down

0 comments on commit 8e085ac

Please sign in to comment.