Add a functional test option to skip notification tests

When running a standalone heat this can never pass.

Change-Id: Ibf435d6bec241904ada86d5786d69e7618adc13f
This commit is contained in:
Angus Salkeld 2015-07-29 12:15:47 +10:00
parent b2f9ec3287
commit c47620703c
3 changed files with 8 additions and 0 deletions

View File

@ -105,6 +105,9 @@ IntegrationTestGroup = [
cfg.BoolOpt('skip_stack_abandon_tests',
default=False,
help="Skip Stack Abandon Integration tests"),
cfg.BoolOpt('skip_notification_tests',
default=False,
help="Skip Notification Integration tests"),
cfg.IntOpt('connectivity_timeout',
default=120,
help="Timeout in seconds to wait for connectivity to "

View File

@ -124,6 +124,8 @@ outputs:
def setUp(self):
super(NotificationTest, self).setUp()
if self.conf.skip_notification_tests:
self.skipTest('Testing Notifications disabled in conf, skipping')
self.client = self.orchestration_client
self.exchange = kombu.Exchange('heat', 'topic', durable=False)

View File

@ -90,6 +90,9 @@
# Skip Stack Abandon Integration tests (boolean value)
#skip_stack_abandon_tests = false
# Skip Notification Integration tests (boolean value)
#skip_notification_tests = false
# Timeout in seconds to wait for connectivity to server. (integer value)
#connectivity_timeout = 120