summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2019-12-12 17:42:27 +0530
committervamahaja <vamahaja@redhat.com>2019-12-12 17:45:08 +0530
commit512da588160e667b7028115acb4a35c2c5663dce (patch)
tree3c36c22f63661d004f79c90c8461d7bb5469af81
parentd2eccc570b70dae4ac5337c22103da615f2714b9 (diff)
Add skip for test case due to bug fix
Test case 'TestPvResizeClass::test_pv_resize_no_free_space' fails due to bug 'BZ-1732831' which is fixed in OCS version 3.11.5. So skip this test case for OCS version below OCS 3.11.5. Change-Id: I7e26293c3defb332da64fd32dda4ed9011db7176 Signed-off-by: vamahaja <vamahaja@redhat.com>
-rw-r--r--tests/functional/provisioning/test_pv_resize.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/provisioning/test_pv_resize.py b/tests/functional/provisioning/test_pv_resize.py
index e7decda..5ac956a 100644
--- a/tests/functional/provisioning/test_pv_resize.py
+++ b/tests/functional/provisioning/test_pv_resize.py
@@ -22,6 +22,9 @@ from openshiftstoragelibs.openshift_ops import (
wait_for_events,
wait_for_pod_be_ready,
wait_for_resource_absence)
+from openshiftstoragelibs.openshift_storage_version import (
+ get_openshift_storage_version,
+)
from openshiftstoragelibs.openshift_version import get_openshift_version
from openshiftstoragelibs import waiter
@@ -218,6 +221,11 @@ class TestPvResizeClass(BaseClass):
def test_pv_resize_no_free_space(self):
"""Validate PVC resize fails if there is no free space available"""
+ if get_openshift_storage_version() < "3.11.5":
+ self.skipTest(
+ "This test case is not supported for < OCS 3.11.5 builds due "
+ "to bug BZ-1653567")
+
self._pv_resize(exceed_free_space=True)
def test_pv_resize_by_exact_free_space(self):