summaryrefslogtreecommitdiffstats
path: root/tests/functional/common/provisioning/test_storage_class_cases.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2018-12-25 21:09:09 +0530
committerValerii Ponomarov <vponomar@redhat.com>2018-12-25 23:20:48 +0530
commita118c991bfd5368aee517cc26188b1e3fee82d1f (patch)
treea4f966c1ce2fa649b6081d9c08b11028ec23a052 /tests/functional/common/provisioning/test_storage_class_cases.py
parent8b6107b62dacf5edc264f4f0206771d8fa07f7bf (diff)
Refactor config options
Doing following: - Rename top-level config option group called 'cns' to the 'openshift'. - Rename 'cns.setup.cns_project_name' option to the 'openshift.storage_project_name'. - Rename 'scale' option to the 'openshift.scale'. - Delete ''devices' and 'zone' options from 'gluster_servers' config group. - Delete 'cns.setup.cnd_username' option as unneeded. - Delete 'cns.setup.cnd_password' option as unneeded. - Delete 'oc_login' common function as unneeded after deletion of 'cns.setup.cnd_username' and 'cns.setup.cnd_password' options. - Remove 'Cns' word from base classes. - Keep backwards compatibility for old options to make transition be smooth. Change-Id: I04ddbbad5f64ffeac79a6744480d33a263d63001
Diffstat (limited to 'tests/functional/common/provisioning/test_storage_class_cases.py')
-rw-r--r--tests/functional/common/provisioning/test_storage_class_cases.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functional/common/provisioning/test_storage_class_cases.py b/tests/functional/common/provisioning/test_storage_class_cases.py
index 027bd0f2..8fd001dd 100644
--- a/tests/functional/common/provisioning/test_storage_class_cases.py
+++ b/tests/functional/common/provisioning/test_storage_class_cases.py
@@ -22,7 +22,7 @@ from cnslibs.common.openshift_ops import (
@ddt.ddt
-class TestStorageClassCases(cns_baseclass.CnsBaseClass):
+class TestStorageClassCases(cns_baseclass.BaseClass):
def create_sc_with_parameter(self, vol_type, success=False, parameter={}):
"""creates storage class, pvc and validates event
@@ -34,9 +34,9 @@ class TestStorageClassCases(cns_baseclass.CnsBaseClass):
parameter (dict): dictionary with storage class parameters
"""
if vol_type == "glusterfile":
- sc = self.cns_storage_class.get(
+ sc = self.storage_classes.get(
'storage_class1',
- self.cns_storage_class.get('file_storage_class'))
+ self.storage_classes.get('file_storage_class'))
# Create secret file for usage in storage class
self.secret_name = oc_create_secret(
@@ -52,9 +52,9 @@ class TestStorageClassCases(cns_baseclass.CnsBaseClass):
"volumetype": "replicate:3"
}
elif vol_type == "glusterblock":
- sc = self.cns_storage_class.get(
+ sc = self.storage_classes.get(
'storage_class2',
- self.cns_storage_class.get('block_storage_class'))
+ self.storage_classes.get('block_storage_class'))
# Create secret file for usage in storage class
self.secret_name = oc_create_secret(