aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common/constants.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-05-16 01:59:06 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-06-24 02:16:10 +0000
commit674a9902d40aef9a4c80669a0d00fc47447a806e (patch)
tree2796b0f5f3661f9bae95ff0805cd0becaf8ace5d /yardstick/common/constants.py
parent417df8187c1ddb04066409db6b2360b85c894b65 (diff)
Add API to update openrc variable
JIRA: YARDSTICK-651 Currently we source openrc variable manually or use yardstick env prepare to get openrc file. We need API to update the openrc variable. api: /yardstick/env/action description: source environment variable method: POST parameters: { 'action': 'update_openrc', 'args':{ 'openrc': { 'OS_USERNAME': 'admin', 'OS_PASSWORD': 'console', 'OS_TENANT_NAME': 'admin', 'OS_AUTH_URL': 'http://192.168.131.222:5000/v2.0', 'EXTERNAL_NETWORK': 'ext-net' } } } Change-Id: I680a7249116c8ff0c1a9e7d5089538d935240c80 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'yardstick/common/constants.py')
-rw-r--r--yardstick/common/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/common/constants.py b/yardstick/common/constants.py
index cb98c356d..4d65aff0c 100644
--- a/yardstick/common/constants.py
+++ b/yardstick/common/constants.py
@@ -77,6 +77,9 @@ DOCKER_URL = 'unix://var/run/docker.sock'
INSTALLERS = ['apex', 'compass', 'fuel', 'joid']
SQLITE = 'sqlite:////tmp/yardstick.db'
+API_SUCCESS = 1
+API_ERROR = 2
+
BASE_URL = 'http://localhost:5000'
ENV_ACTION_API = BASE_URL + '/yardstick/env/action'
ASYNC_TASK_API = BASE_URL + '/yardstick/asynctask'