Beispiel #1
0
 def _setUp(self):
     log.register_options(cfg.CONF)
     CONF.set_default('host', 'fake-mini')
     CONF.set_default('connection', "sqlite://", group='database')
     CONF.set_default('sqlite_synchronous', False, group='database')
     config.parse_args([], default_config_files=[])
     self.addCleanup(CONF.reset)
Beispiel #2
0
 def _setUp(self):
     log.register_options(cfg.CONF)
     CONF.set_default('host', 'fake-mini')
     CONF.set_default('connection', "sqlite://", group='database')
     CONF.set_default('sqlite_synchronous', False, group='database')
     config.parse_args([], default_config_files=[])
     self.addCleanup(CONF.reset)
Beispiel #3
0
 def _setUp(self):
     self.conf.set_default('host', 'fake-mini')
     self.conf.set_default('connection', "sqlite://", group='database')
     self.conf.set_default('sqlite_synchronous', False, group='database')
     self.conf.set_default('verbose', True)
     config.parse_args([], default_config_files=[])
     self.addCleanup(self.conf.reset)
 def _setUp(self):
     self.conf.set_default('host', 'fake-mini')
     self.conf.set_default('connection', "sqlite://", group='database')
     self.conf.set_default('sqlite_synchronous', False, group='database')
     self.conf.set_default('verbose', True)
     config.parse_args([], default_config_files=[])
     self.addCleanup(self.conf.reset)
Beispiel #5
0
def prepare_service(argv=None):
    if argv is None:
        argv = []
    logging.register_options(cfg.CONF)
    config.parse_args(argv)
    config.set_config_defaults()

    logging.setup(cfg.CONF, 'magnum')