Merge "Initialize CONF properly in store func tests"
This commit is contained in:
commit
f84c488274
glance/tests/functional/store
@ -86,7 +86,8 @@ class TestS3Store(store_tests.BaseTestCase, testtools.TestCase):
|
||||
msg = "GLANCE_TEST_S3_CONF environ not set."
|
||||
self.skipTest(msg)
|
||||
|
||||
glance.openstack.common.cfg.CONF(default_config_files=[config_path])
|
||||
glance.openstack.common.cfg.CONF(args=[],
|
||||
default_config_files=[config_path])
|
||||
|
||||
raw_config = read_config(config_path)
|
||||
config = parse_config(raw_config)
|
||||
|
@ -153,7 +153,8 @@ class TestSwiftStore(store_tests.BaseTestCase, testtools.TestCase):
|
||||
msg = "GLANCE_TEST_SWIFT_CONF environ not set."
|
||||
self.skipTest(msg)
|
||||
|
||||
glance.openstack.common.cfg.CONF(default_config_files=[config_path])
|
||||
glance.openstack.common.cfg.CONF(args=[],
|
||||
default_config_files=[config_path])
|
||||
|
||||
raw_config = read_config(config_path)
|
||||
config = parse_config(raw_config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user