Skip to content

Commit

Permalink
Use external mode sc in test_log_reader_writer_parallel when executed…
Browse files Browse the repository at this point in the history
… on external mode clusters (#5630)

Signed-off-by: Prasad Desala <[email protected]>
  • Loading branch information
PrasadDesala authored Apr 12, 2022
1 parent 353f94b commit 0fb116b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/workloads/test_data_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand All @@ -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"

Expand Down

0 comments on commit 0fb116b

Please sign in to comment.