Fix test patching of clouds.yaml file locations
OpenStack Client Config has been pulled into openstacksdk. As part of this work OSCC internals were dropped and aliased into the sdk lib. This move broke patching of the clouds.yaml file location for nodepool tests. We quickly work around this by using the new location for the value to be overridden in openstacksdk. Change-Id: I55ad4333ffddec8eeb023e345156e96773504400
This commit is contained in:
parent
2ef5670f1d
commit
f385a5821f
@ -192,7 +192,7 @@ class BaseTestCase(testtools.TestCase):
|
||||
clouds_path = os.path.join(os.path.dirname(__file__),
|
||||
'fixtures', 'clouds.yaml')
|
||||
self.useFixture(fixtures.MonkeyPatch(
|
||||
'os_client_config.config.CONFIG_FILES', [clouds_path]))
|
||||
'openstack.config.loader.CONFIG_FILES', [clouds_path]))
|
||||
|
||||
def wait_for_threads(self):
|
||||
# Wait until all transient threads (node launches, deletions,
|
||||
|
@ -32,7 +32,7 @@ class TestShadeIntegration(tests.IntegrationTestCase):
|
||||
self.useFixture(config_dir)
|
||||
self.clouds_path = os.path.join(config_dir.path, 'clouds.yaml')
|
||||
self.useFixture(fixtures.MonkeyPatch(
|
||||
'os_client_config.config.CONFIG_FILES',
|
||||
'openstack.config.loader.CONFIG_FILES',
|
||||
[self.clouds_path]))
|
||||
|
||||
with open(self.clouds_path, 'w') as h:
|
||||
|
Loading…
Reference in New Issue
Block a user