Files
murano-tests/integration-tests/etc/config.py
Sergey Murashov 76b918bcb3 Add integration tests
Change-Id: Ic33378ea58ea4b90a579c69ea840709e31d07e99
2014-01-23 12:48:14 +04:00

39 lines
1.0 KiB
Python

import os
from oslo.config import cfg
murano_group = cfg.OptGroup(name='murano', title="murano")
MuranoGroup = [
cfg.StrOpt('auth_url',
default='http://127.0.0.1:5000/v2.0/',
help="keystone url"),
cfg.StrOpt('murano_url',
default='http://127.0.0.1:8082',
help="murano url"),
cfg.StrOpt('user',
default='admin',
help="keystone user"),
cfg.StrOpt('password',
default='pass',
help="password for keystone user"),
cfg.StrOpt('tenant',
default='admin',
help='keystone tenant')
]
def register_config(config, config_group, config_opts):
config.register_group(config_group)
config.register_opts(config_opts, config_group)
path = os.path.join("%s/etc/config.conf" % os.getcwd())
if os.path.exists(path):
cfg.CONF([], project='muranointegration', default_config_files=[path])
register_config(cfg.CONF, murano_group, MuranoGroup)
murano = cfg.CONF.murano