174d39bfe26422a4a3e4e6099f465dac23a79cb6
[yardstick.git] / yardstick / common / constants.py
1 ##############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 import os
10
11 DOCKER_URL = 'unix://var/run/docker.sock'
12
13 # database config
14 USER = 'root'
15 PASSWORD = 'root'
16 DATABASE = 'yardstick'
17
18 INFLUXDB_IMAGE = 'tutum/influxdb'
19 INFLUXDB_TAG = '0.13'
20
21 GRAFANA_IMAGE = 'grafana/grafana'
22 GRAFANA_TAGS = '3.1.1'
23
24 dirname = os.path.dirname
25 abspath = os.path.abspath
26 join = os.path.join
27 sep = os.path.sep
28
29 INSTALLERS = ['apex', 'compass', 'fuel', 'joid']
30
31 YARDSTICK_ROOT_PATH = dirname(dirname(dirname(abspath(__file__)))) + sep
32
33 YARDSTICK_REPOS_DIR = '/home/opnfv/repos/yardstick'
34
35 YARDSTICK_CONFIG_DIR = '/etc/yardstick/'
36
37 YARDSTICK_CONFIG_FILE = join(YARDSTICK_CONFIG_DIR, 'yardstick.conf')
38
39 YARDSTICK_CONFIG_SAMPLE_DIR = join(YARDSTICK_ROOT_PATH, 'etc/yardstick/')
40
41 YARDSTICK_CONFIG_SAMPLE_FILE = join(YARDSTICK_CONFIG_SAMPLE_DIR,
42                                     'yardstick.conf.sample')
43
44 RELENG_DIR = '/home/opnfv/repos/releng'
45
46 OS_FETCH_SCRIPT = 'utils/fetch_os_creds.sh'
47
48 CLEAN_IMAGES_SCRIPT = 'tests/ci/clean_images.sh'
49
50 LOAD_IMAGES_SCRIPT = 'tests/ci/load_images.sh'
51
52 OPENSTACK_RC_FILE = join(YARDSTICK_CONFIG_DIR, 'openstack.creds')
53
54 BASE_URL = 'http://localhost:5000'
55 ENV_ACTION_API = BASE_URL + '/yardstick/env/action'
56 ASYNC_TASK_API = BASE_URL + '/yardstick/asynctask'