summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNishanth Thomas <nthomas@redhat.com>2014-04-08 20:12:14 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commitb40621bc3f1253adaa154428ddef758638b5d175 (patch)
tree9232b9b080ded9d4d2aeb37cec1c2a7ce24a8127 /tests
parent644a9617c9d31a76c0b217950d53355d14b54daf (diff)
SNMP Trap Support : SNMP notification on status change
These plugins will generate SNMP traps when there is a host or service state change in Nagios. Plugged into the Nagios Notification mechanism and uses netsnmp utils to generate SNMP traps Addressed the review comments Change-Id: I42c4d1968a48bc80e767f6fbc24d1637a92d21b0 Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gluster_host_service_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_gluster_host_service_handler.py b/tests/test_gluster_host_service_handler.py
index 9c36f19..5bbdff6 100644
--- a/tests/test_gluster_host_service_handler.py
+++ b/tests/test_gluster_host_service_handler.py
@@ -70,8 +70,8 @@ class TestGlusterHostServiceHandler(TestCaseBase):
"Service(s) [\'dummy srvc\']"
" in CRITICAL state\n")
- @mock.patch('plugins.gluster_host_service_handler.' \
- '_getHostMonitoringSrvcList')
+ @mock.patch(
+ 'plugins.gluster_host_service_handler._getHostMonitoringSrvcList')
@mock.patch('plugins.gluster_host_service_handler.checkLiveStatus')
@mock.patch('plugins.gluster_host_service_handler.update_host_state')
def testCheckAndUpdateHostStateToUp(self,