diff options
author | vamahaja <vamahaja@redhat.com> | 2019-08-14 14:16:52 +0530 |
---|---|---|
committer | vamahaja <vamahaja@redhat.com> | 2019-08-14 17:24:06 +0530 |
commit | 1f55afcf661f460cde5fb9a949761fe88db37761 (patch) | |
tree | 11fd512403ddd25a79e4ed77a0d34a9f8bd8a014 /tests/functional/gluster_stability | |
parent | 3f060d7c5957791e91df7441dad8cc8bb9679331 (diff) |
Add OCS 3.9 version check for test cases which uses multipath validation
Change-Id: I5bb2760ff284cdc83424388bfdfc79d5fd112f21
Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/gluster_stability')
-rw-r--r-- | tests/functional/gluster_stability/test_gluster_block_stability.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/gluster_stability/test_gluster_block_stability.py b/tests/functional/gluster_stability/test_gluster_block_stability.py index acbec125..cb8f7f65 100644 --- a/tests/functional/gluster_stability/test_gluster_block_stability.py +++ b/tests/functional/gluster_stability/test_gluster_block_stability.py @@ -30,6 +30,9 @@ from openshiftstoragelibs.openshift_storage_libs import ( get_iscsi_session, get_mpath_name_from_device_name, ) +from openshiftstoragelibs.openshift_storage_version import ( + get_openshift_storage_version +) from openshiftstoragelibs.waiter import Waiter @@ -40,6 +43,17 @@ class TestGlusterBlockStability(GlusterBlockBaseClass): super(TestGlusterBlockStability, self).setUp() self.node = self.ocp_master_node[0] + # TODO(vamahaja): Add check for CRS version + if not self.is_containerized_gluster(): + self.skipTest( + "Skipping this test case as CRS version check " + "is not implemented") + + if get_openshift_storage_version() <= "3.9": + self.skipTest( + "Skipping this test case as multipath validation " + "is not supported in OCS 3.9") + def initiator_side_failures(self): self.create_storage_class() self.create_and_wait_for_pvc() |