summaryrefslogtreecommitdiffstats
path: root/tests/functional/gluster_stability/test_restart_gluster_services.py
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2019-08-13 19:17:24 +0530
committervponomar <vponomar@redhat.com>2019-08-14 08:56:47 +0000
commit3f060d7c5957791e91df7441dad8cc8bb9679331 (patch)
treec62d5656bbb75b39bffd5314e029700d379c2148 /tests/functional/gluster_stability/test_restart_gluster_services.py
parent45958781660802c7c8792c307fda05e43323cf20 (diff)
Add OCS version check for test cases
Change-Id: I4196cb1395a3720e03f62473d11e5f46d797c355
Diffstat (limited to 'tests/functional/gluster_stability/test_restart_gluster_services.py')
-rw-r--r--tests/functional/gluster_stability/test_restart_gluster_services.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/functional/gluster_stability/test_restart_gluster_services.py b/tests/functional/gluster_stability/test_restart_gluster_services.py
index ba7ca1c..b68da6b 100644
--- a/tests/functional/gluster_stability/test_restart_gluster_services.py
+++ b/tests/functional/gluster_stability/test_restart_gluster_services.py
@@ -30,6 +30,9 @@ from openshiftstoragelibs.openshift_ops import (
wait_for_resource_absence,
wait_for_service_status_on_gluster_pod_or_node,
)
+from openshiftstoragelibs.openshift_storage_version import (
+ get_openshift_storage_version
+)
from openshiftstoragelibs import utils
@@ -234,6 +237,17 @@ class GlusterStabilityTestSetup(GlusterBlockBaseClass):
@skip("Blocked by BZ-1634745, BZ-1635736, BZ-1636477")
def test_target_side_failures_brick_failure_on_block_hosting_volume(self):
"""Target side failures - Brick failure on block hosting volume"""
+ skip_msg = (
+ "Skipping this test case due to bugs "
+ "BZ-1634745, BZ-1635736, BZ-1636477, BZ-1641668")
+
+ # TODO(vamahaja): Add check for CRS version
+ if not self.is_containerized_gluster():
+ self.skipTest(skip_msg + " and not impleted CRS version check")
+
+ if get_openshift_storage_version() < "3.11.2":
+ self.skipTest(skip_msg)
+
self.deploy_and_verify_resouces()
# get block hosting volume from pvc name
@@ -264,6 +278,17 @@ class GlusterStabilityTestSetup(GlusterBlockBaseClass):
Perform stop/start operation on block hosting volume when
IO's and provisioning are going on
"""
+ skip_msg = (
+ "Skipping this test case due to bugs "
+ "BZ-1634745, BZ-1635736, BZ-1636477, BZ-1641668")
+
+ # TODO(vamahaja): Add check for CRS version
+ if not self.is_containerized_gluster():
+ self.skipTest(skip_msg + " and not impleted CRS version check")
+
+ if get_openshift_storage_version() < "3.11.2":
+ self.skipTest(skip_msg)
+
self.deploy_and_verify_resouces()
# get block hosting volume from pvc name