diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-01-21 18:27:09 +0530 |
---|---|---|
committer | vponomar <vponomar@redhat.com> | 2019-02-08 07:33:43 +0000 |
commit | 2c5ae6e4bfd9ccb6cb7330e46cfec3f910468dad (patch) | |
tree | 6b743d3eabcd90cc85870b7f489dd64c7f284779 /tests/functional/common/test_node_restart.py | |
parent | 6876a64de0913772c4004d3c0c836051f3d103f5 (diff) |
Add CRS support to the 'restart gluster services' test cases
Change-Id: I40b7ea79d1f7dbc82db825f6ced4447a157361e6
Diffstat (limited to 'tests/functional/common/test_node_restart.py')
-rw-r--r-- | tests/functional/common/test_node_restart.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/common/test_node_restart.py b/tests/functional/common/test_node_restart.py index 02272321..fc8bec07 100644 --- a/tests/functional/common/test_node_restart.py +++ b/tests/functional/common/test_node_restart.py @@ -4,7 +4,7 @@ import time from unittest import skip from cnslibs.cns.cns_baseclass import BaseClass from cnslibs.common.openshift_ops import ( - check_service_status, + check_service_status_on_pod, get_ocp_gluster_pod_names, oc_rsh, wait_for_pod_be_ready) @@ -20,6 +20,8 @@ class TestNodeRestart(BaseClass): self.oc_node = self.ocp_master_node[0] self.gluster_pod_list = get_ocp_gluster_pod_names(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] self.sc_name = self.create_storage_class() @@ -130,7 +132,7 @@ class TestNodeRestart(BaseClass): for service in service_names: g.log.info("gluster_pod - '%s' : gluster_service '%s'" % ( gluster_pod, service)) - check_service_status( + check_service_status_on_pod( self.oc_node, gluster_pod, service, "running" ) |