summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/baseclass.py
diff options
context:
space:
mode:
authorNitin Goyal <nigoyal@redhat.com>2019-11-20 14:19:53 +0530
committervponomar <vponomar@redhat.com>2019-11-21 14:48:45 +0000
commit35958d4622eae5fe2f127e9a2c3e4bce8263346e (patch)
tree431e91c759125d5b95207efb1137139c9328da6d /openshift-storage-libs/openshiftstoragelibs/baseclass.py
parent74ea70f8b8de5c86da992c13f0f60329d092e019 (diff)
Add new TC verify PID's of gluster volume
Add new TC where it will verify PID's of gluster volumes are same when volume options value is different. Change-Id: Ie0cae1ad3fdfd35e4c0e7f01e3a048b62b185369
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/baseclass.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/baseclass.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
index dd57a13..ebf5c77 100644
--- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py
+++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
@@ -212,7 +212,7 @@ class BaseClass(unittest.TestCase):
clusterid=None,
hacount=None,
is_arbiter_vol=False, arbiter_avg_file_size=None,
- heketi_zone_checking=None):
+ heketi_zone_checking=None, volumeoptions=None):
# Create secret if one is not specified
if not secret_name:
@@ -245,6 +245,12 @@ class BaseClass(unittest.TestCase):
parameters["volumeoptions"] += (
",user.heketi.average-file-size %s" % (
arbiter_avg_file_size))
+
+ if volumeoptions and "volumeoptions" in parameters.keys():
+ parameters["volumeoptions"] += ',' + volumeoptions
+ elif volumeoptions:
+ parameters["volumeoptions"] = volumeoptions
+
if heketi_zone_checking:
if parameters.get("volumeoptions"):
parameters["volumeoptions"] += (