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:
committed by
Taylor Peoples
parent
4662f248b3
commit
473cee8ad3
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user