diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-06-24 01:29:41 +0530 |
---|---|---|
committer | vponomar <vponomar@redhat.com> | 2019-07-11 09:13:40 +0000 |
commit | 32724906d1fd5fd09759e1daf927594461c26d5e (patch) | |
tree | b6744bd1f0b1364e43810c343a873f6022e3e575 /tests/functional/heketi/test_heketi_metrics.py | |
parent | 1ef65c168d3b45a5af5d263ff3403263810a42d8 (diff) |
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
Diffstat (limited to 'tests/functional/heketi/test_heketi_metrics.py')
-rw-r--r-- | tests/functional/heketi/test_heketi_metrics.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/functional/heketi/test_heketi_metrics.py b/tests/functional/heketi/test_heketi_metrics.py index f6601074..23351aea 100644 --- a/tests/functional/heketi/test_heketi_metrics.py +++ b/tests/functional/heketi/test_heketi_metrics.py @@ -1,5 +1,4 @@ from openshiftstoragelibs.baseclass import BaseClass -from openshiftstoragelibs import exceptions from openshiftstoragelibs.heketi_ops import ( get_heketi_metrics, heketi_cluster_info, @@ -183,7 +182,7 @@ class TestHeketiMetrics(BaseClass): self.heketi_dc_name, pod_amount=1) # verify that metrics is not accessable when heketi pod is down - with self.assertRaises(exceptions.ExecutionError): + with self.assertRaises(AssertionError): get_heketi_metrics( self.heketi_client_node, self.heketi_server_url, |