Merge "Record test case names when run a task using API"
[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 from __future__ import absolute_import
10 import os
11
12 DOCKER_URL = 'unix://var/run/docker.sock'
13
14 # database config
15 USER = 'root'
16 PASSWORD = 'root'
17 DATABASE = 'yardstick'
18
19 INFLUXDB_IMAGE = 'tutum/influxdb'
20 INFLUXDB_TAG = '0.13'
21
22 GRAFANA_IMAGE = 'grafana/grafana'
23 GRAFANA_TAGS = '3.1.1'
24
25 dirname = os.path.dirname
26 abspath = os.path.abspath
27 join = os.path.join
28 sep = os.path.sep
29
30 INSTALLERS = ['apex', 'compass', 'fuel', 'joid']
31
32 YARDSTICK_ROOT_PATH = dirname(dirname(dirname(abspath(__file__)))) + sep
33
34 TESTCASE_DIR = join(YARDSTICK_ROOT_PATH, 'tests/opnfv/test_cases/')
35
36 TESTSUITE_DIR = join(YARDSTICK_ROOT_PATH, 'tests/opnfv/test_suites/')
37
38 YARDSTICK_REPOS_DIR = '/home/opnfv/repos/yardstick'
39
40 YARDSTICK_LOG_DIR = '/tmp/yardstick/'
41
42 YARDSTICK_CONFIG_DIR = '/etc/yardstick/'
43
44 YARDSTICK_CONFIG_FILE = join(YARDSTICK_CONFIG_DIR, 'yardstick.conf')
45
46 YARDSTICK_CONFIG_SAMPLE_DIR = join(YARDSTICK_ROOT_PATH, 'etc/yardstick/')
47
48 YARDSTICK_CONFIG_SAMPLE_FILE = join(YARDSTICK_CONFIG_SAMPLE_DIR,
49                                     'yardstick.conf.sample')
50
51 RELENG_DIR = '/home/opnfv/repos/releng'
52
53 OS_FETCH_SCRIPT = 'utils/fetch_os_creds.sh'
54
55 CLEAN_IMAGES_SCRIPT = 'tests/ci/clean_images.sh'
56
57 LOAD_IMAGES_SCRIPT = 'tests/ci/load_images.sh'
58
59 OPENSTACK_RC_FILE = join(YARDSTICK_CONFIG_DIR, 'openstack.creds')
60
61 BASE_URL = 'http://localhost:5000'
62 ENV_ACTION_API = BASE_URL + '/yardstick/env/action'
63 ASYNC_TASK_API = BASE_URL + '/yardstick/asynctask'
64
65 SQLITE = 'sqlite:////tmp/yardstick.db'
66
67 DEFAULT_OUTPUT_FILE = '/tmp/yardstick.out'