summaryrefslogtreecommitdiff
path: root/tests
diff options
authorCharles Butler <chuck@dasroot.net>2014-07-29 11:46:13 -0400
committerCharles Butler <chuck@dasroot.net>2014-07-29 11:46:13 -0400
commit6a95037f25e45849b187a59c638d1c32ed12cafa (patch)
treecadf4f2f23ea0438e88f88dbe0b945e315846c98 /tests
parentef3b4c384a6e6692b8a58f63c1de094f84bd2197 (diff)
Changed ceilometer test to look for the public address as validation
Diffstat (limited to 'tests')
-rwxr-xr-xtests/200_relate_ceilometer.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/200_relate_ceilometer.test b/tests/200_relate_ceilometer.test
index c5018aa..6cb68a4 100755
--- a/tests/200_relate_ceilometer.test
+++ b/tests/200_relate_ceilometer.test
@@ -31,10 +31,11 @@ class TestDeploy(object):
if test.startswith('test_'):
getattr(self, test)()
- def test_mongo(self):
+ def test_mongo_relation(self):
unit = self.deploy.sentry.unit['ceilometer/0']
+ mongo = self.deploy.sentry.unit['mongodb/0'].info['public-address']
cont = unit.file_contents('/etc/ceilometer/ceilometer.conf')
- if "mongodb://" not in cont:
+ if mongo not in cont:
amulet.raise_status(amulet.FAIL, "Unable to verify ceiolmeter cfg")
if __name__ == '__main__':