cinder/cinder/tests/unit/keymgr
Kaitlin Farr 96948e48b1 Modifies override logic for key_manager
Makes the logic for overriding config options for the key_manager
more robust.

Before this patch, the override logic seemed to be called before the global
CONF object has been populated with values from the configuration file.
ConfKeyManager, the default for if no value had been specified, would be
used to override the value for api_class. Then when CONF was populated
with the actual values, the ConfKeyManager override value would still be
set.

This patch makes the logic a little bit more robust so that the value
is only overriden if explicitly passed into the function, not at the
global scope outside of the function.

SecurityImpact

Closes-Bug: 1621109
Change-Id: Id5f83f69fd3a877459fab924c005047e55f98c7b
(cherry picked from commit b66d4d997c)
2016-09-26 13:57:43 -04:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake.py Replace key manager with Castellan 2016-08-29 10:19:10 +08:00
test_conf_key_mgr.py Replace key manager with Castellan 2016-08-29 10:19:10 +08:00
test_init.py Modifies override logic for key_manager 2016-09-26 13:57:43 -04:00