From 32724906d1fd5fd09759e1daf927594461c26d5e Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Mon, 24 Jun 2019 01:29:41 +0530 Subject: Make Heketi commands run on a Heketi POD when main command fails It happens that heketi client located out of the Heketi POD may fail not reaching the server side. So, add back-up approach where we run Heketi commands on a Heketi POD when main commands fail. Change-Id: Ie6ae5be82082f34426f9288b02575e3abd4940f5 --- tests/functional/heketi/test_volume_creation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/functional/heketi/test_volume_creation.py') diff --git a/tests/functional/heketi/test_volume_creation.py b/tests/functional/heketi/test_volume_creation.py index f8ca5d81..b2a3bdb4 100644 --- a/tests/functional/heketi/test_volume_creation.py +++ b/tests/functional/heketi/test_volume_creation.py @@ -2,7 +2,6 @@ from glusto.core import Glusto as g from glustolibs.gluster import volume_ops from openshiftstoragelibs.baseclass import BaseClass -from openshiftstoragelibs import exceptions from openshiftstoragelibs import heketi_ops from openshiftstoragelibs import podcmd @@ -137,7 +136,7 @@ class TestVolumeCreationTestCases(BaseClass): try: vol_fail = heketi_ops.heketi_volume_create( node, server_url, min_space_gb, json=True) - except exceptions.ExecutionError: + except AssertionError: g.log.info("Volume was not created as expected.") else: self.addCleanup( -- cgit