Skip zaqar-requiring tests properly
Change-Id: I0095738ec4d7d8c4bf3380c3e712beafd96adc2d
diff --git a/heat_tempest_plugin/tests/functional/test_event_sinks.py b/heat_tempest_plugin/tests/functional/test_event_sinks.py
index 7cb1d7b..97b2667 100644
--- a/heat_tempest_plugin/tests/functional/test_event_sinks.py
+++ b/heat_tempest_plugin/tests/functional/test_event_sinks.py
@@ -29,6 +29,11 @@
value: ok
'''
+ def check_skip(self):
+ super(ZaqarEventSinkTest, self).check_skip()
+ if not self.is_service_available('messaging'):
+ self.skipTest('Service Zaqar is not available.')
+
@decorators.idempotent_id('d0b72695-e97d-4aa1-bfaf-31c14b09ac87')
def test_events(self):
queue_id = str(uuid.uuid4())
diff --git a/heat_tempest_plugin/tests/functional/test_software_config.py b/heat_tempest_plugin/tests/functional/test_software_config.py
index f034096..757cef9 100644
--- a/heat_tempest_plugin/tests/functional/test_software_config.py
+++ b/heat_tempest_plugin/tests/functional/test_software_config.py
@@ -229,6 +229,11 @@
queue_id = %(queue_id)s
'''
+ def check_skip(self):
+ super(ZaqarSignalTransportTest, self).check_skip()
+ if not self.is_service_available('messaging'):
+ self.skipTest('Service Zaqar is not available.')
+
@decorators.idempotent_id('3af97ced-bead-4629-b78a-97762719e990')
def test_signal_queues(self):
parms = {'flavor': self.conf.minimal_instance_type,
diff --git a/heat_tempest_plugin/tests/functional/test_waitcondition.py b/heat_tempest_plugin/tests/functional/test_waitcondition.py
index b50c0a2..f618c38 100644
--- a/heat_tempest_plugin/tests/functional/test_waitcondition.py
+++ b/heat_tempest_plugin/tests/functional/test_waitcondition.py
@@ -39,6 +39,11 @@
value: {'Fn::Select': ['data_id', {get_attr: [wait_condition, data]}]}
'''
+ def check_skip(self):
+ super(ZaqarWaitConditionTest, self).check_skip()
+ if not self.is_service_available('messaging'):
+ self.skipTest('Service Zaqar is not available.')
+
@decorators.idempotent_id('90183f0d-9929-43a6-8fb6-b81003824c6d')
def test_signal_queues(self):
stack_identifier = self.stack_create(