diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-03-13 19:44:23 +0530 |
---|---|---|
committer | vponomar <vponomar@redhat.com> | 2019-03-19 11:24:28 +0000 |
commit | 831a510f8594bb14cbb076d04fcf7d6fd52dfb38 (patch) | |
tree | 828fdf25b89bea11c125202b4504a19f08bd0164 /openshift-storage-libs/openshiftstoragelibs/baseclass.py | |
parent | 0f48f25294d63852d9cc97eda3b6467f0369a69c (diff) |
Unskip TCs with recreation of Gluster PODs
BZ-1632873 was fixed, hence, unskip test cases which were
skipped due to this BZ. Also, make it run only on containerized
Gluster clusters.
Change-Id: Iee49a303c4f191652d1c94c18e830e6d2fb4e381
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/baseclass.py')
-rw-r--r-- | openshift-storage-libs/openshiftstoragelibs/baseclass.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py index 366af6a9..c7891608 100644 --- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py +++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py @@ -258,6 +258,13 @@ class BaseClass(unittest.TestCase): timeout=timeout, wait_step=wait_step) return dc_name, pod_name + def is_containerized_gluster(self): + cmd = ("oc get pods --no-headers -l glusterfs-node=pod " + "-o=custom-columns=:.spec.nodeName") + g_nodes = command.cmd_run(cmd, self.ocp_client[0]) + g_nodes = g_nodes.split('\n') if g_nodes else g_nodes + return not not g_nodes + def _is_error_or_failure_exists(self): if hasattr(self, '_outcome'): # Python 3.4+ |