Skip to content

Commit

Permalink
Adding volumeMode param to snapshot_restore_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
keemano committed Jun 20, 2024
1 parent f9a81b5 commit 015a6fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/functional/pv/pv_services/test_rbd_image_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import time

from ocs_ci.framework import config
from ocs_ci.ocs import constants
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 015a6fd

Please sign in to comment.