Merge "Skip ha tests if only one controller is online"
This commit is contained in:
commit
b54c48a50e
|
@ -40,6 +40,8 @@ class TestMysqlReplication(fuel_health.test.BaseTestCase):
|
|||
super(TestMysqlReplication, self).setUp()
|
||||
if 'ha' not in self.config.compute.deployment_mode:
|
||||
self.fail('Cluster is not HA mode, skipping tests')
|
||||
if len(self.controllers) == 1:
|
||||
self.fail('There is only one controller online. Nothing to check')
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
|
|
@ -54,6 +54,8 @@ class RabbitSmokeTest(BaseTestCase):
|
|||
self.fail('There are no controller nodes')
|
||||
if not self.amqp_clients:
|
||||
self.fail('Cannot create AMQP clients for controllers')
|
||||
if len(self._controllers) == 1:
|
||||
self.fail('There is only one controller online')
|
||||
|
||||
def test_001_rabbitmqctl_status(self):
|
||||
"""Check RabbitMQ is available
|
||||
|
|
Loading…
Reference in New Issue