Skip to content

Commit b8e3e28

Browse files
AYUSH-D-PATNIAYUSH-D-PATNI
AYUSH-D-PATNI
authored and
AYUSH-D-PATNI
committed
updated test case
Signed-off-by: AYUSH-D-PATNI <[email protected]>
1 parent 06af199 commit b8e3e28

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/functional/workloads/cnv/test_vm_snapshot_cloning_ops.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_vm_snapshot_pvc_clone(
133133
):
134134
"""
135135
Creates a snapshot of a deployed VM, restores the snapshot, and then
136-
clones the restored PVC.
136+
clones the restored PVC and deploys VM using restored PVC.
137137
138138
Test Steps:
139139
1. Create a VM with PVC
@@ -153,7 +153,7 @@ def test_vm_snapshot_pvc_clone(
153153
)[-1]
154154

155155
# Write data to the VM
156-
file_paths = ["/source_file.txt", "/new_file.txt"]
156+
file_paths = "/source_file.txt"
157157
source_csum = run_dd_io(vm_obj=vm_obj, file_path=file_paths[0], verify=True)
158158
vm_obj.stop()
159159

@@ -179,11 +179,9 @@ def test_vm_snapshot_pvc_clone(
179179
res_vm_obj = cnv_workload(
180180
volume_interface=constants.VM_VOLUME_PVC,
181181
source_url=constants.CNV_FEDORA_SOURCE,
182-
pvc_obj=cloned_pvc_obj,
182+
existing_pvc_obj=cloned_pvc_obj,
183183
namespace=vm_obj.namespace,
184-
)[1]
185-
# Verify data integrity in the cloned VM
186-
run_dd_io(vm_obj=res_vm_obj, file_path=file_paths[1], verify=True)
184+
)[-1]
187185
# Check the MD5 checksum to verify that data persisted after cloning
188186
res_csum = cal_md5sum_vm(vm_obj=res_vm_obj, file_path=file_paths[0])
189187
assert source_csum == res_csum, (

0 commit comments

Comments
 (0)