diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2018-12-15 23:42:25 +0530 |
---|---|---|
committer | Valerii Ponomarov <vponomar@redhat.com> | 2018-12-16 02:47:07 +0530 |
commit | 8bf07df7ebbbf228c0815aced9b624f0da3653e8 (patch) | |
tree | 05a92f880efcbf18b8a41316e04cbb9be758ca5a /tests/functional/common/heketi/test_heketi_metrics.py | |
parent | d28c2f0c06ba627c39c96e93016abed678151b7e (diff) |
Rework 'heketi_ops' module
Doing following:
- Remove dead code with usage of Heketi python lib.
Because it is not used and not tested.
- Remove unused functions in general.
- Make existing functions raise exceptions with CLI error message
instead of returning 'False' boolean value hiding info about
original errors.
Change-Id: I1f0def567dd77425397ff2c8ba13f9c0640af5bc
Diffstat (limited to 'tests/functional/common/heketi/test_heketi_metrics.py')
-rw-r--r-- | tests/functional/common/heketi/test_heketi_metrics.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/common/heketi/test_heketi_metrics.py b/tests/functional/common/heketi/test_heketi_metrics.py index a888b82b..0e29b738 100644 --- a/tests/functional/common/heketi/test_heketi_metrics.py +++ b/tests/functional/common/heketi/test_heketi_metrics.py @@ -1,3 +1,4 @@ +from cnslibs.common import exceptions from cnslibs.common.heketi_libs import HeketiBaseClass from cnslibs.common.heketi_ops import ( get_heketi_metrics, @@ -174,7 +175,7 @@ class TestHeketiMetrics(HeketiBaseClass): self.heketi_dc_name, pod_amount=1) # verify that metrics is not accessable when heketi pod is down - with self.assertRaises(AssertionError): + with self.assertRaises(exceptions.ExecutionError): get_heketi_metrics( self.heketi_client_node, self.heketi_server_url, |