Fix tests to work in debug mode

Avoid oslo.cfg errors when running the tests in debug mode, with
run_tests.sh -d, or directly with testtools.

Change-Id: I7c8b24673ac2d502b219a00ce8af93111348b1ff
This commit is contained in:
Michael Kerrin 2013-10-10 13:16:37 +00:00
parent d951222c14
commit b372d0b63e
1 changed files with 1 additions and 2 deletions

View File

@ -27,6 +27,7 @@ CONF.import_opt('policy_file', 'cinder.policy')
CONF.import_opt('volume_driver', 'cinder.volume.manager')
CONF.import_opt('xiv_ds8k_proxy', 'cinder.volume.drivers.xiv_ds8k')
CONF.import_opt('backup_driver', 'cinder.backup.manager')
CONF.import_opt('fixed_key', 'cinder.keymgr.conf_key_mgr', group='keymgr')
def_vol_type = 'fake_vol_type'
@ -48,6 +49,4 @@ def set_defaults(conf):
'xiv_ds8k_proxy',
'cinder.tests.test_xiv_ds8k.XIVDS8KFakeProxyDriver')
conf.set_default('backup_driver', 'cinder.tests.backup.fake_service')
# NOTE(joel-coffman): This option for the ConfKeyManager must be set or
# else the ConfKeyManager cannot be instantiated.
conf.set_default('fixed_key', default='0' * 64, group='keymgr')