From 015a6fdf68369c57d85433c8baf70dafd2d64932 Mon Sep 17 00:00:00 2001 From: Keerthana Manoharan Date: Thu, 20 Jun 2024 11:14:41 +0530 Subject: [PATCH] Adding volumeMode param to snapshot_restore_factory --- tests/functional/pv/pv_services/test_rbd_image_metadata.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/functional/pv/pv_services/test_rbd_image_metadata.py b/tests/functional/pv/pv_services/test_rbd_image_metadata.py index e4f1d02fcc5..94d203d4326 100644 --- a/tests/functional/pv/pv_services/test_rbd_image_metadata.py +++ b/tests/functional/pv/pv_services/test_rbd_image_metadata.py @@ -1,4 +1,5 @@ import logging +import time from ocs_ci.framework import config from ocs_ci.ocs import constants @@ -55,7 +56,9 @@ def test_rbd_image_metadata( rbd_images.append(snap_image_name) # restore the snapshot - restored_pvc = snapshot_restore_factory(snapshot_obj=snap_obj, timeout=600) + restored_pvc = snapshot_restore_factory( + snapshot_obj=snap_obj, volume_mode=pvc_obj.get_pvc_vol_mode, timeout=600 + ) log.info(f"restored the snapshot {restored_pvc.name} created!") # create a clone of the PVC