summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2018-12-05 21:29:01 +0530
committerValerii Ponomarov <vponomar@redhat.com>2018-12-10 07:54:06 +0000
commitc853d36db63ada595d42f4cf41bcaf1bb7741377 (patch)
tree63ea063cdb1d3b53fa7cf3d843fbcfabd3ac7986 /tests
parent024f0f0bc9f8c969c8f5a3ec494cee0c019f1868 (diff)
Make 'test_storage_class_cases' module support standalone Gluster
By doing following updates: - Add and reuse lib function which calculates amount of Gluster PODs or Gluster nodes. - Make 'get_gluster_blockvol_info_by_pvc_name' lib func support standalonge Gluster clusters in addition to the 'containerized' ones. Change-Id: I6a12bb4c30b1e6f8698a614abefc248149773302
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/common/provisioning/test_storage_class_cases.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/common/provisioning/test_storage_class_cases.py b/tests/functional/common/provisioning/test_storage_class_cases.py
index 52ac761a..027bd0f2 100644
--- a/tests/functional/common/provisioning/test_storage_class_cases.py
+++ b/tests/functional/common/provisioning/test_storage_class_cases.py
@@ -6,8 +6,8 @@ from glusto.core import Glusto as g
from cnslibs.cns import cns_baseclass
from cnslibs.common.cns_libs import validate_multipath_pod
from cnslibs.common.openshift_ops import (
+ get_amount_of_gluster_nodes,
get_gluster_blockvol_info_by_pvc_name,
- get_ocp_gluster_pod_names,
get_pod_name_from_dc,
oc_create_app_dc_with_io,
oc_create_pvc,
@@ -190,7 +190,7 @@ class TestStorageClassCases(cns_baseclass.CnsBaseClass):
gluster pods count
'''
# get hacount as no of gluster pods the pvc creation
- hacount = len(get_ocp_gluster_pod_names(self.ocp_master_node[0]))
+ hacount = get_amount_of_gluster_nodes(self.ocp_master_node[0])
# create storage class and pvc with given parameters
self.create_sc_with_parameter(
@@ -209,7 +209,7 @@ class TestStorageClassCases(cns_baseclass.CnsBaseClass):
value
'''
# get hacount as no of gluster pods + 1 to fail the pvc creation
- hacount = len(get_ocp_gluster_pod_names(self.ocp_master_node[0])) + 1
+ hacount = get_amount_of_gluster_nodes(self.ocp_master_node[0]) + 1
# create storage class and pvc with given parameters
self.create_sc_with_parameter(