Merge "tests: Isolate tests from OS_CLOUD"

This commit is contained in:
Zuul 2023-05-26 01:40:19 +00:00 committed by Gerrit Code Review
commit e74301292a

View File

@ -105,9 +105,13 @@ class TestCase(base.TestCase):
)
# Isolate openstack.config from test environment
self.os_cloud_fixture = self.useFixture(
fixtures.EnvironmentVariable('OS_CLOUD'),
)
config = tempfile.NamedTemporaryFile(delete=False)
cloud_path = '%s/clouds/%s' % (
cloud_path = os.path.join(
self.fixtures_directory,
'clouds',
cloud_config_fixture,
)
with open(cloud_path, 'rb') as f: