diff options
author | vamahaja <vamahaja@redhat.com> | 2019-12-12 12:22:00 +0530 |
---|---|---|
committer | vamahaja <vamahaja@redhat.com> | 2019-12-12 15:23:17 +0530 |
commit | d2eccc570b70dae4ac5337c22103da615f2714b9 (patch) | |
tree | 7aa0de6d9b925d96f73f9adc1db11bca0f3324f5 | |
parent | 67b253ea6361b10f11ae79b53c53dca67c4908d3 (diff) |
Add skip for 'iscsi-initiator-utils' version in test case
Add skip for package 'iscsi-initiator-utils' in test case
'test_initiator_side_failures_create_100_app_pods_with_block_pv' due to
issue 'BZ-1624670'
Change-Id: I4730b298e367fdacbaac1f314b760df6d7642e14
-rw-r--r-- | tests/functional/gluster_stability/test_gluster_block_stability.py | 13 |
1 files changed, 13 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 d380374b..98e8ba38 100644 --- a/tests/functional/gluster_stability/test_gluster_block_stability.py +++ b/tests/functional/gluster_stability/test_gluster_block_stability.py @@ -999,6 +999,19 @@ class TestGlusterBlockStability(GlusterBlockBaseClass): self.skipTest("Skipping test case due to BZ-1607520, which is" " fixed in OCS 3.11.4") + # Skip the test if iscsi-initiator-utils version is not the expected + e_pkg_version = '6.2.0.874-13' + cmd = ("rpm -q iscsi-initiator-utils" + " --queryformat '%{version}-%{release}\n'" + "| cut -d '.' -f 1,2,3,4") + for g_server in self.gluster_servers: + out = self.cmd_run(cmd, g_server) + if parse_version(out) < parse_version(e_pkg_version): + self.skipTest( + "Skip test since isci initiator utils version actual: %s " + "is less than expected: %s on node %s, for more info " + "refer to BZ-1624670" % (out, e_pkg_version, g_server)) + nodes = oc_get_schedulable_nodes(self.node) # Get list of all gluster nodes |