From 200913ce74823f4f87519d1e36f4201b4eeb55bc Mon Sep 17 00:00:00 2001 From: vamahaja Date: Thu, 23 Apr 2020 13:06:04 +0530 Subject: [TestFix] Add CRS check for test cases Change-Id: I4213c2f6f9d1a0c2c3382bfada6632bd21db1350 Signed-off-by: vamahaja --- tests/functional/heketi/test_heketi_node_operations.py | 5 +++++ tests/functional/provisioning/test_pv_resize.py | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'tests/functional') diff --git a/tests/functional/heketi/test_heketi_node_operations.py b/tests/functional/heketi/test_heketi_node_operations.py index fbc6f23c..0bf5a4b2 100644 --- a/tests/functional/heketi/test_heketi_node_operations.py +++ b/tests/functional/heketi/test_heketi_node_operations.py @@ -252,6 +252,11 @@ class TestHeketiNodeOperations(baseclass.BaseClass): @pytest.mark.tier1 def test_validate_heketi_node_add_with_db_check(self): """Test heketi db check after node add operation""" + if not self.is_containerized_gluster(): + self.skipTest( + "Skipping this test case as CRS version check " + "is not implemented") + if (openshift_storage_version.get_openshift_storage_version() < "3.11.4"): self.skipTest( diff --git a/tests/functional/provisioning/test_pv_resize.py b/tests/functional/provisioning/test_pv_resize.py index 7f9ba907..2ec469a2 100644 --- a/tests/functional/provisioning/test_pv_resize.py +++ b/tests/functional/provisioning/test_pv_resize.py @@ -224,6 +224,11 @@ class TestPvResizeClass(BaseClass): @pytest.mark.tier2 def test_pv_resize_no_free_space(self): """Validate PVC resize fails if there is no free space available""" + 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.11.5": self.skipTest( "This test case is not supported for < OCS 3.11.5 builds due " -- cgit