From d5f6c2145bb37d7607d3f05329c0efca3c398fae Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Thu, 24 Apr 2014 16:35:27 +0530 Subject: plugins: Server side plugin for geo-rep Added server side plugin option for geo-rep status Change-Id: I6f604862ec7d4813298a670b7ed2cc0b448faf23 Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/7592 --- tests/test_config_generator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_config_generator.py b/tests/test_config_generator.py index d8e8789..ea41e7d 100644 --- a/tests/test_config_generator.py +++ b/tests/test_config_generator.py @@ -65,7 +65,7 @@ class TestGlusterNagiosConfManager(TestCaseBase): self._verifyClusterServices(config, clusterData) def _verifyClusterServices(self, clusterConfig, clusterData): - self.assertEqual(len(clusterConfig['host_services']), 6) + self.assertEqual(len(clusterConfig['host_services']), 7) for volume in clusterData['volumes']: self._verifyVolumeServices(clusterConfig['host_services'], volume) @@ -82,6 +82,10 @@ class TestGlusterNagiosConfManager(TestCaseBase): service = self._findServiceInList(serviceList, serviceDesc) self.assertNotEqual(service, None, "Volume Status Quota service is not created") + serviceDesc = 'Volume Geo-Replication - %s' % (volume['name']) + service = self._findServiceInList(serviceList, serviceDesc) + self.assertNotEqual(service, None, + "Volume Geo-Replication service is not created") if 'Replicate' in volume['type']: serviceDesc = 'Volume Self-Heal - %s' % (volume['name']) service = self._findServiceInList(serviceList, serviceDesc) -- cgit