¡@

Home 

OpenStack Study: conf_fixture.py

OpenStack Index

**** CubicPower OpenStack Study ****

def set_defaults(conf):

    conf.set_default('default_volume_type', def_vol_type)

    conf.set_default('volume_driver',

                     'cinder.tests.fake_driver.FakeISCSIDriver')

    conf.set_default('iscsi_helper', 'fake')

    conf.set_default('fake_rabbit', True)

    conf.set_default('rpc_backend', 'cinder.openstack.common.rpc.impl_fake')

    conf.set_default('iscsi_num_targets', 8)

    conf.set_default('connection', 'sqlite://', group='database')

    conf.set_default('sqlite_synchronous', False)

    conf.set_default('policy_file', 'cinder/tests/policy.json')

    conf.set_default(

        'xiv_ds8k_proxy',

        'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver')

    conf.set_default('backup_driver', 'cinder.tests.backup.fake_service')

    conf.set_default('fixed_key', default='0' * 64, group='keymgr')

    conf.set_default('scheduler_driver',

                     'cinder.scheduler.filter_scheduler.FilterScheduler')

    conf.set_default('state_path', os.path.abspath(

        os.path.join(os.path.dirname(__file__), '..', '..')))