Merge "Skip ha tests if only one controller is online"

This commit is contained in:
Jenkins 2014-03-25 17:08:20 +00:00 committed by Gerrit Code Review
commit b54c48a50e
2 changed files with 4 additions and 0 deletions

View File

@ -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):

View File

@ -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