Merge "Skip tests when heat is unavailable"
This commit is contained in:
commit
4196ac5992
@ -170,6 +170,9 @@ class HeatIntegrationTest(testtools.testcase.WithAttributes,
|
||||
def setUp(self):
|
||||
super(HeatIntegrationTest, self).setUp()
|
||||
|
||||
if not config.CONF.service_available.heat:
|
||||
raise self.skipException("Heat is not available")
|
||||
|
||||
self.conf = config.CONF.heat_plugin
|
||||
|
||||
self.assertIsNotNone(self.conf.auth_url,
|
||||
|
@ -16,10 +16,14 @@ import os
|
||||
from gabbi import fixture
|
||||
from heat_tempest_plugin.services import clients
|
||||
from tempest import config
|
||||
import unittest.case
|
||||
|
||||
|
||||
class AuthenticationFixture(fixture.GabbiFixture):
|
||||
def start_fixture(self):
|
||||
if not config.CONF.service_available.heat:
|
||||
raise unittest.case.SkipTest("Heat is not available")
|
||||
|
||||
conf = config.CONF.heat_plugin
|
||||
manager = clients.ClientManager(conf)
|
||||
os.environ['OS_TOKEN'] = manager.identity_client.auth_token
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
The ``[service_available] heat`` parameter now takes effect and disables
|
||||
all tests when it is set to ``False``.
|
Loading…
x
Reference in New Issue
Block a user