Skip to content

Commit

Permalink
fix(system-backup): wait for last backup of volume updated
Browse files Browse the repository at this point in the history
Modify the test case:
- `test_system_backup_with_volume_backup_policy_if_not_present`

to wait for the last backup of the volume updated when creating
the first backup.

Signed-off-by: James Lu <[email protected]>
  • Loading branch information
mantissahz authored and yangchiu committed Jan 8, 2025
1 parent 85d2174 commit cd2fb66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manager/integration/tests/test_system_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from common import core_api # NOQA

from common import check_volume_data
from common import check_volume_last_backup
from common import cleanup_volume
from common import create_and_check_volume
from common import create_backup
Expand Down Expand Up @@ -257,6 +258,9 @@ def create_system_backup_and_assert_volume_backup_count(count):

backup_volume = find_backup_volume(client, volume_name)
wait_for_backup_count(backup_volume, count)
check_volume_last_backup(client,
volume_name,
backup_volume.lastBackupName)

create_system_backup_and_assert_volume_backup_count(1)
create_system_backup_and_assert_volume_backup_count(1)
Expand Down

0 comments on commit cd2fb66

Please sign in to comment.