Skip to content

Commit 3097d67

Browse files
Improve certificate backup test assertions
This reverts commit 79174f2.
1 parent 79174f2 commit 3097d67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Backup-DbaDbCertificate.Tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ Describe "Backup-DbaDbCertificate" -Tag "IntegrationTests" {
144144
}
145145

146146
It "Returns results with proper data" {
147-
$results | Should -HaveCount 3
148-
$results.Certificate | Should -Be $cert1.Name, $cert2.Name, $cert3.Name
147+
$results | Should -BeGreaterOrEqual 3
148+
$results.Certificate | Should -Contain $cert1.Name
149+
$results.Certificate | Should -Contain $cert2.Name
150+
$results.Certificate | Should -Contain $cert3.Name
149151
}
150152
}
151-
}
153+
}

0 commit comments

Comments
 (0)