From 3f060d7c5957791e91df7441dad8cc8bb9679331 Mon Sep 17 00:00:00 2001 From: vamahaja Date: Tue, 13 Aug 2019 19:17:24 +0530 Subject: Add OCS version check for test cases Change-Id: I4196cb1395a3720e03f62473d11e5f46d797c355 --- tests/functional/test_node_restart.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/functional/test_node_restart.py') diff --git a/tests/functional/test_node_restart.py b/tests/functional/test_node_restart.py index 3d342af6..8bf70f7c 100644 --- a/tests/functional/test_node_restart.py +++ b/tests/functional/test_node_restart.py @@ -11,6 +11,9 @@ from openshiftstoragelibs.openshift_ops import ( oc_rsh, wait_for_pod_be_ready, ) +from openshiftstoragelibs.openshift_storage_version import ( + get_openshift_storage_version +) class TestNodeRestart(BaseClass): @@ -26,6 +29,9 @@ class TestNodeRestart(BaseClass): self.skipTest("Standalone Gluster is not supported by this test.") self.gluster_pod_name = self.gluster_pod_list[0] + if get_openshift_storage_version() < "3.11.1": + self.skipTest("Skipping this test case due to bug BZ-1635736") + self.sc_name = self.create_storage_class() self.pvc_names = self._create_volumes_with_io(3) -- cgit