Skip to content

Commit

Permalink
Rebase with latest main changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TachunLin committed Aug 9, 2024
1 parent e8d06fa commit 8c0aef0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions harvester_e2e_tests/integrations/test_4_vm_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ def test_with_snapshot_restore_with_new_vm(
code, data = api_client.backups.restore(unique_backup_name, spec)
assert 201 == code, (code, data)

vm_getable, (code, data) = vm_checker.wait_getable(restored_vm_name)
assert vm_getable, (code, data)

# Check VM Started then get IPs (vm and host)
vm_got_ips, (code, data) = vm_checker.wait_ip_addresses(restored_vm_name, ['default'])
assert vm_got_ips, (
Expand Down Expand Up @@ -806,6 +809,8 @@ def test_with_snapshot_restore_replace_retain_vols(
spec = api_client.backups.RestoreSpec.for_existing(delete_volumes=False)
code, data = api_client.backups.restore(unique_backup_name, spec)
assert 201 == code, f'Failed to restore backup with current VM replaced, {data}'
vm_getable, (code, data) = vm_checker.wait_getable(unique_vm_name)
assert vm_getable, (code, data)

# Check VM Started then get IPs (vm and host)
vm_got_ips, (code, data) = vm_checker.wait_ip_addresses(unique_vm_name, ['default'])
Expand Down

0 comments on commit 8c0aef0

Please sign in to comment.