Exemple #1
0
def prepare_service(argv=[]):
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['sqlalchemy=WARN',
                                         'eventlet.wsgi.server=WARN'
                                         ])
    config.parse_args(argv)
    log.setup('kds')
Exemple #2
0
    def setUp(self):
        super(Conf, self).setUp()

        db_session.set_defaults(sql_connection=self._SQL_CONNECTION,
                                sqlite_db='kds.sqlite')

        self.conf.set_default('master_key_file', 'test.mkey', group='kds')
        self.conf.set_default('connection', "sqlite://", group='database')
        self.conf.set_default('verbose', True)

        config.parse_args(args=[])
        self.addCleanup(self.conf.reset)