summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2020-04-23 13:06:04 +0530
committervamahaja <vamahaja@redhat.com>2020-04-23 13:06:04 +0530
commit200913ce74823f4f87519d1e36f4201b4eeb55bc (patch)
treed6c8fdb0eaa13881158608f4c73eb36be4ee082e /tests
parent766ed7a521ea08a6a18282fe47a505b8f266de1c (diff)
[TestFix] Add CRS check for test cases
Change-Id: I4213c2f6f9d1a0c2c3382bfada6632bd21db1350 Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/heketi/test_heketi_node_operations.py5
-rw-r--r--tests/functional/provisioning/test_pv_resize.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/functional/heketi/test_heketi_node_operations.py b/tests/functional/heketi/test_heketi_node_operations.py
index fbc6f23..0bf5a4b 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 7f9ba90..2ec469a 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 "