Validate default values in config

This makes sure the default value provided for the configuration options
are valid.

Change-Id: Idab74f1e1201e2b187bae6de97f88d9b9f6f700e
This commit is contained in:
Julien Danjou 2015-02-10 10:50:36 +01:00
parent b7986706bd
commit bf05ed2aa6
2 changed files with 2 additions and 2 deletions

View File

@ -115,6 +115,6 @@ def prepare_service(argv=None):
default_log_levels=log_levels)
if argv is None:
argv = sys.argv
cfg.CONF(argv[1:], project='ceilometer')
cfg.CONF(argv[1:], project='ceilometer', validate_default_values=True)
log.setup('ceilometer')
messaging.setup()

View File

@ -201,7 +201,7 @@ class TestBase(testscenarios.testcase.WithScenarios, test_base.BaseTestCase):
'Test is not applicable for %s' % engine)
self.CONF = self.useFixture(fixture_config.Config()).conf
self.CONF([], project='ceilometer')
self.CONF([], project='ceilometer', validate_default_values=True)
self.db_manager = self._get_driver_manager(engine)(self.db_url)
self.useFixture(self.db_manager)