distil/tests/constants.py
adriant 69db713502 adding 'collection' to the test config so tests can run.
The collection dict holds nothing currently as we have no tests for collection,
but has been adding so config import can occur.

Change-Id: I54f6a54183905ffd8ebe17e9bcc6fbd1de568870
2014-04-30 13:58:35 +12:00

47 lines
1.1 KiB
Python

DATABASE_NAME = "test_artifice"
PG_DATABASE_URI = "postgresql://aurynn:postgres@localhost/%s" % DATABASE_NAME
MY_DATABASE_URI = "mysql://root:password@localhost/%s" % DATABASE_NAME
config = {
"main": {
"region": "Wellington",
"timezone": "Pacific/Auckland",
"database_uri": PG_DATABASE_URI
},
"rates_config": {
"file": "examples/test_rates.csv"
},
"auth": {
"end_point": "http://localhost:35357/v2.0",
"username": "admin",
"password": "openstack",
"default_tenant": "demo",
"insecure": False,
},
"ceilometer": {
"host": "http://localhost:8777/"
},
"transformers": {
"uptime": {
"tracked_states": ["active", "building",
"paused", "rescued", "resized"]
}
},
"collection": {}
}
# from test data:
TENANT_ID = "cd3deadd3d5a4f11802d03928195f4ef"
TENANTS = [
{u'enabled': True,
u'description': None,
u'name': u'demo',
u'id': u'cd3deadd3d5a4f11802d03928195f4ef'}
]
AUTH_TOKEN = "ASDFTOKEN"