'Set up config.'

def start_fixture(self):

    global LOAD_APP_KWARGS
    self.conf = None
    db_url = os.environ.get('PIFPAF_URL', 'sqlite://').replace('mysql://', 'mysql+pymysql://')
    if (not db_url):
        raise case.SkipTest('No    database    connection    configured')
    engine = urlparse.urlparse(db_url).scheme
    if (engine not in ENGINES):
        raise case.SkipTest('Database    engine    not    supported')
    self.conf = service.prepare_service([], [])
    content = '{"default":    ""}'
    if six.PY3:
        content = content.encode('utf-8')
    self.tempfile = fileutils.write_to_tempfile(content=content, prefix='policy', suffix='.json')
    self.conf.set_override('policy_file', self.tempfile, group='oslo_policy')
    self.conf.set_override('api_paste_config', os.path.abspath('ceilometer/tests/functional/gabbi/gabbi_paste.ini'))
    self.conf.set_override('pipeline_cfg_file', 'ceilometer/tests/functional/gabbi_pipeline.yaml')
    database_name = ('%s-%s' % (db_url, str(uuid.uuid4())))
    self.conf.set_override('connection', database_name, group='database')
    self.conf.set_override('metering_connection', '', group='database')
    self.conf.set_override('gnocchi_is_enabled', False, group='api')
    self.conf.set_override('aodh_is_enabled', False, group='api')
    self.conf.set_override('panko_is_enabled', False, group='api')
    LOAD_APP_KWARGS = {'conf': self.conf}
