Skip to content

Commit

Permalink
added check for vm status after restart
Browse files Browse the repository at this point in the history
Signed-off-by: Avdhoot <[email protected]>
  • Loading branch information
avd-sagare committed Jan 3, 2025
1 parent 37fcaa2 commit 5dda06c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/functional/workloads/cnv/test_cnv_shutdown_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class TestVmShutdownStart(E2ETest):
@pytest.mark.polarion_id("OCS-6304")
def test_vm_abrupt_shutdown_cluster(
self,
multi_cnv_workload,
nodes,
setup_cnv,
project_factory,
cnv_workload,
multi_cnv_workload,
clone_vm_workload,
setup_cnv,
snapshot_factory,
snapshot_restore_factory,
cnv_workload,
nodes,
):
"""
This test performs the behaviour of VMs and data integrity after abrupt shutdown of cluster
Expand Down Expand Up @@ -158,6 +158,10 @@ def test_vm_abrupt_shutdown_cluster(
all_vms[1].start()
all_vms[2].start()

# Verifies vm status after start and ssh connectivity
all_vms[1].verify_vm(verify_ssh=True)
all_vms[2].verify_vm(verify_ssh=True)

# Perform post restart data integrity check
for vm_obj in all_vms:
new_csum = cal_md5sum_vm(vm_obj=vm_obj, file_path=file_paths[0])
Expand Down

0 comments on commit 5dda06c

Please sign in to comment.