Skip to content

Commit 70eaf69

Browse files
committed
Update Restore-SqlDscDatabase tests to verify database status includes 'Standby' in standby mode
1 parent 6e9741b commit 70eaf69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Integration/Commands/Restore-SqlDscDatabase.Integration.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ Describe 'Restore-SqlDscDatabase' -Tag @('Integration_SQL2017', 'Integration_SQL
619619
$restoredDb.Refresh()
620620

621621
# Database should be online and in standby/read-only state
622-
$restoredDb.Status | Should -Be 'Normal' -Because 'Database should be online in standby mode'
622+
$restoredDb.Status | Should -Contain 'Normal' -Because 'Database should be online in standby mode'
623+
$restoredDb.Status | Should -Contain 'Standby' -Because 'Database should be in standby mode'
623624
$restoredDb.IsReadOnly | Should -BeTrue -Because 'Database should be read-only in standby mode'
624625

625626
# Verify standby file exists and has content

0 commit comments

Comments
 (0)