diff options
author | vamahaja <vamahaja@redhat.com> | 2019-07-16 12:04:19 +0530 |
---|---|---|
committer | vamahaja <vamahaja@redhat.com> | 2019-08-07 12:34:13 +0530 |
commit | aed2e7e9543969c604a61af020c8a5fbaf38cd04 (patch) | |
tree | 0c4de45068e49869b5d0c0cc56ac804dd35bcdc5 /tests/functional/test_node_restart.py | |
parent | 9443109a6fd20e8124b37099e620e6551b25dc8a (diff) |
Workaround BZ-1727360 in the "get_gluster_pod_names_by_pvc_name" func
"get_gluster_pod_names_by_pvc_name" function depends
on the ocp3.11 specific shell command, which fails on
old OCP versions. So, fix it by getting info in compatible way.
Also, update usages of this function with new return data structure.
Change-Id: Ibb8559590a1288c032630b3292f631d28bc87263
Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/test_node_restart.py')
-rw-r--r-- | tests/functional/test_node_restart.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/test_node_restart.py b/tests/functional/test_node_restart.py index 745ea2db..2452c616 100644 --- a/tests/functional/test_node_restart.py +++ b/tests/functional/test_node_restart.py @@ -7,7 +7,7 @@ from openshiftstoragelibs.baseclass import BaseClass from openshiftstoragelibs.exceptions import ExecutionError from openshiftstoragelibs.openshift_ops import ( check_service_status_on_pod, - get_ocp_gluster_pod_names, + get_ocp_gluster_pod_details, oc_rsh, wait_for_pod_be_ready, ) @@ -20,7 +20,9 @@ class TestNodeRestart(BaseClass): super(TestNodeRestart, self).setUp() self.oc_node = self.ocp_master_node[0] - self.gluster_pod_list = get_ocp_gluster_pod_names(self.oc_node) + self.gluster_pod_list = [ + pod["pod_name"] + for pod in get_ocp_gluster_pod_details(self.oc_node)] if not self.gluster_pod_list: self.skipTest("Standalone Gluster is not supported by this test.") self.gluster_pod_name = self.gluster_pod_list[0] |