summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-08-08 18:34:50 +0530
committerSahina Bose <sabose@redhat.com>2014-09-23 23:39:24 -0700
commitf6934b13b3706c810bdff311b15a2d33ad22a29a (patch)
tree58be8ec5a0645b72c43bdba5772061a85df6fcfb /tests
parent1ee32cb06834ebb80d548ef4039b9e40f928900e (diff)
nagios-commons: Added a new exception class
Added different exception in case of transaction lock errors, so that the plugins can return correct state based on the exception messages Change-Id: Ibbe5dd17b4829765505451f5a6554d2ade4b2980 Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1109752 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/8442 Reviewed-by: Bala FA <barumuga@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_glustercli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_glustercli.py b/tests/test_glustercli.py
index 5c71f34..67260a8 100644
--- a/tests/test_glustercli.py
+++ b/tests/test_glustercli.py
@@ -1097,7 +1097,7 @@ class GlusterCliTests(TestCaseBase):
mock_glusterVolCmd,
mock_execCmd,):
mock_glusterVolCmd.return_value = ["gluster", "volume"]
- mock_execCmd.return_value = -1, None, "err"
+ mock_execCmd.return_value = -1, None, ["err"]
try:
gcli.volumeQuotaStatus("test-vol")
assert False