@@ -133,7 +133,7 @@ def test_vm_snapshot_pvc_clone(
133
133
):
134
134
"""
135
135
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 .
137
137
138
138
Test Steps:
139
139
1. Create a VM with PVC
@@ -153,7 +153,7 @@ def test_vm_snapshot_pvc_clone(
153
153
)[- 1 ]
154
154
155
155
# Write data to the VM
156
- file_paths = [ "/source_file.txt" , "/new_file.txt" ]
156
+ file_paths = "/source_file.txt"
157
157
source_csum = run_dd_io (vm_obj = vm_obj , file_path = file_paths [0 ], verify = True )
158
158
vm_obj .stop ()
159
159
@@ -179,11 +179,9 @@ def test_vm_snapshot_pvc_clone(
179
179
res_vm_obj = cnv_workload (
180
180
volume_interface = constants .VM_VOLUME_PVC ,
181
181
source_url = constants .CNV_FEDORA_SOURCE ,
182
- pvc_obj = cloned_pvc_obj ,
182
+ existing_pvc_obj = cloned_pvc_obj ,
183
183
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 ]
187
185
# Check the MD5 checksum to verify that data persisted after cloning
188
186
res_csum = cal_md5sum_vm (vm_obj = res_vm_obj , file_path = file_paths [0 ])
189
187
assert source_csum == res_csum , (
0 commit comments