Prometheus has registered a non-zero num of osds (#820)
Change prometheus test to check it has a non-zero amount of OSDs registered rather than a specific number. This stops the number of OSDs having to be managed in the tests.
This commit is contained in:
@@ -942,10 +942,9 @@ class CephPrometheusTest(unittest.TestCase):
|
||||
raise unittest.SkipTest('Prometheus not present, skipping test')
|
||||
unit = zaza_model.get_unit_from_name(
|
||||
zaza_model.get_lead_unit_name('prometheus2'))
|
||||
self.assertEqual(
|
||||
'3',
|
||||
_get_mon_count_from_prometheus(
|
||||
zaza_model.get_unit_public_address(unit)))
|
||||
prometheus_mon_count = _get_mon_count_from_prometheus(
|
||||
zaza_model.get_unit_public_address(unit))
|
||||
self.assertTrue(0 < int(prometheus_mon_count))
|
||||
|
||||
|
||||
class CephPoolConfig(Exception):
|
||||
|
||||
Reference in New Issue
Block a user