Merge "Skip tests when heat is unavailable"

This commit is contained in:
Zuul 2022-08-30 07:52:09 +00:00 committed by Gerrit Code Review
commit 4196ac5992
3 changed files with 12 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,5 @@
---
fixes:
- |
The ``[service_available] heat`` parameter now takes effect and disables
all tests when it is set to ``False``.