From 33f927b5ff56f4b00635234de75b8ae57cb56214 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Mon, 5 May 2014 10:05:29 +0530 Subject: autoconf: handle exceptions in nrpe commands Handling the exceptions and failure from NRPE commands. Change-Id: I36cba2d6adf8484ba134ad3f7aec77437ba07857 Signed-off-by: Ramesh Nachimuthu Reviewed-on: http://review.gluster.org/7659 Reviewed-by: Sahina Bose --- tests/test_discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_discovery.py') 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) -- cgit