Skip to content

Commit

Permalink
who knows, im about to skip it
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 26, 2024
1 parent 9ac5114 commit e48f744
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/Copy-DbaAgentOperator.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,24 @@ Describe "Copy-DbaAgentOperator" -Tag "IntegrationTests" {
}

Context "When copying operators" {
It "Returns two results" {
It "Returns two copied operators" {
$splat = @{
Source = $TestConfig.instance2
Destination = $TestConfig.instance3
Operator = @("dbatoolsci_operator", "dbatoolsci_operator2")
Operator = 'dbatoolsci_operator', 'dbatoolsci_operator2'
}
$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" {
$splet = @{
Source = $TestConfig.instance2
Destination = $TestConfig.instance3
Operator = "dbatoolsci_operator"
Operator = 'dbatoolsci_operator'
}
$skippedResults = Copy-DbaAgentOperator @splet
$skippedResults.Status | Should -Be "Skipped"
(Copy-DbaAgentOperator @splet).Status | Should -Be "Skipped"
}
}
}

0 comments on commit e48f744

Please sign in to comment.