From 0fb116b3945cd342d53cfe1155886e18d38f5722 Mon Sep 17 00:00:00 2001 From: Prasad Desala Date: Tue, 12 Apr 2022 16:45:07 +0530 Subject: [PATCH] Use external mode sc in test_log_reader_writer_parallel when executed on external mode clusters (#5630) Signed-off-by: Prasad Desala --- tests/e2e/workloads/test_data_consistency.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/e2e/workloads/test_data_consistency.py b/tests/e2e/workloads/test_data_consistency.py index adf90d78874..7fbd3ea706c 100644 --- a/tests/e2e/workloads/test_data_consistency.py +++ b/tests/e2e/workloads/test_data_consistency.py @@ -18,6 +18,7 @@ from ocs_ci.ocs.resources import topology from ocs_ci.ocs.resources.objectconfigfile import ObjectConfFile, link_spec_volume from ocs_ci.utility.utils import run_cmd +from ocs_ci.helpers.helpers import storagecluster_independent_check logger = logging.getLogger(__name__) @@ -38,7 +39,11 @@ def test_log_reader_writer_parallel(project, tmp_path): # we need to mount the volume on every worker node, so RWX/cephfs pvc_dict["metadata"]["name"] = "logwriter-cephfs-many" pvc_dict["spec"]["accessModes"] = [constants.ACCESS_MODE_RWX] - pvc_dict["spec"]["storageClassName"] = constants.CEPHFILESYSTEM_SC + if storagecluster_independent_check(): + sc_name = constants.DEFAULT_EXTERNAL_MODE_STORAGECLASS_CEPHFS + else: + sc_name = constants.CEPHFILESYSTEM_SC + pvc_dict["spec"]["storageClassName"] = sc_name # there is no need for lot of storage capacity for this test pvc_dict["spec"]["resources"]["requests"]["storage"] = "1Gi"