diff options
author | Sahina Bose <sabose@redhat.com> | 2015-09-30 18:19:28 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2016-03-24 00:13:29 -0700 |
commit | eb3ce65fef8751d38f785ae6f69f4dbb31f8e0b4 (patch) | |
tree | 19357ca8841bb07c969e41acf130bec1312a60b2 /tests | |
parent | 905769bb0f1658d8f455daaaf7dfc99526aa60e8 (diff) |
nagios-plugins: Added heal info monitoring
Added a plugin to monitor heal info for a volume
Corrected pep8 errors
Changed default monitoring interval to 1 min for
heal info monitoring
Bug-Url: https://bugzilla.redhat.com/1267586
BUG: 1267586
Change-Id: I1c51d4d0f2129a7bb19f44b63382fcfc7384dc40
Signed-off-by: Sahina Bose <sabose@redhat.com>
Reviewed-on: http://review.gluster.org/12262
Reviewed-by: Ramesh N <rnachimu@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config_generator.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_config_generator.py b/tests/test_config_generator.py index 91fce1e..c4a54c6 100644 --- a/tests/test_config_generator.py +++ b/tests/test_config_generator.py @@ -106,7 +106,11 @@ class TestGlusterNagiosConfManager(TestCaseBase): service = self._findServiceInList(serviceList, serviceDesc) self.assertNotEqual(service, None, "Volume Split-brain service is not created") - serviceCount += 1 + serviceDesc = 'Volume Heal info - %s' % (volume['name']) + service = self._findServiceInList(serviceList, serviceDesc) + self.assertNotEqual(service, None, + "Volume Heal info service is not created") + serviceCount += 2 return serviceCount def _findServiceInList(self, serviceList, serviceDescription): |