Test: make enforce_type=True in CONF.set_override and fix error

Each config option has limitation for type and value.
We make enforce_type=True to check whether we pass wrong type.

Also fixes a type error issue in test_db_manager.py.

Change-Id: I6e111e21588525d32b05eeba75b06583d4e605ed
Related-Bug: #1517839
This commit is contained in:
ting.wang
2016-01-13 11:35:15 +08:00
committed by Taylor Peoples
parent 4662f248b3
commit 473cee8ad3
16 changed files with 41 additions and 26 deletions

View File

@@ -32,7 +32,8 @@ class FunctionalTest(unittest.TestCase):
"""
def setUp(self):
cfg.CONF.set_override("enable_authentication", False)
cfg.CONF.set_override("enable_authentication", False,
enforce_type=True)
self.app = testing.load_test_app(os.path.join(
os.path.dirname(__file__),
'config.py'