summaryrefslogtreecommitdiffstats
path: root/tests/test_config_generator.py
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-04-24 16:35:27 +0530
committerSahina Bose <sabose@redhat.com>2014-05-01 23:22:40 -0700
commitd5f6c2145bb37d7607d3f05329c0efca3c398fae (patch)
tree9aeb1736c3f5ce3681a328847ae4e4e8d6dad5af /tests/test_config_generator.py
parentdd16d35b465974b17dfafd29006e8124f04c34e0 (diff)
plugins: Server side plugin for geo-rep
Added server side plugin option for geo-rep status Change-Id: I6f604862ec7d4813298a670b7ed2cc0b448faf23 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7592
Diffstat (limited to 'tests/test_config_generator.py')
-rw-r--r--tests/test_config_generator.py6
1 files changed, 5 insertions, 1 deletions
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)