diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-05-05 10:05:29 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-04 23:53:01 -0700 |
commit | 33f927b5ff56f4b00635234de75b8ae57cb56214 (patch) | |
tree | 24d97b30546fb29b66885c3d5073482f8ee99efe /tests/test_discovery.py | |
parent | 2d1f9f2f5e0e5c0816a4116d280254566d711699 (diff) |
autoconf: handle exceptions in nrpe commands
Handling the exceptions and failure from NRPE commands.
Change-Id: I36cba2d6adf8484ba134ad3f7aec77437ba07857
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: http://review.gluster.org/7659
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'tests/test_discovery.py')
-rw-r--r-- | tests/test_discovery.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_discovery.py b/tests/test_discovery.py index a211167..122d8a1 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -21,8 +21,8 @@ from testrunner import PluginsTestCase as TestCaseBase class TestDiscovery(TestCaseBase): - def _mockExcecNRPECommand(self, host, command, arguments=None, - jsonOutput=True): + def _mockExecNRPECommand(self, host, command, arguments=None, + jsonOutput=True): if command == "discover_volume_list": return self._getVolumeNames() elif command == "discover_volume_info": @@ -93,7 +93,7 @@ class TestDiscovery(TestCaseBase): # Method to test the discoverCluster() method def testDiscoverCluster(self): - discovery.excecNRPECommand = self._mockExcecNRPECommand + discovery.execNRPECommand = self._mockExecNRPECommand clusterName = "test-cluster" host = "172.16.53.1" clusterdata = discovery.discoverCluster(host, clusterName) |