From 483e2fcf41adcdddad5543c04d3ad42c60def334 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Tue, 17 Jan 2017 15:40:17 +0000 Subject: Add unittest framework for Yardstick API JIRA: YARDSTICK-538 Currently it is hard to test API, So I add a base class as flask document do. In this framework I will mock a temp sqlite database and a server. Change-Id: If881233cb22655617c07ad018201b8ee08492d06 Signed-off-by: chenjiankun --- yardstick/common/constants.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yardstick') diff --git a/yardstick/common/constants.py b/yardstick/common/constants.py index d99e216f4..ffca4b3e9 100644 --- a/yardstick/common/constants.py +++ b/yardstick/common/constants.py @@ -55,3 +55,5 @@ OPENSTACK_RC_FILE = join(YARDSTICK_CONFIG_DIR, 'openstack.creds') BASE_URL = 'http://localhost:5000' ENV_ACTION_API = BASE_URL + '/yardstick/env/action' ASYNC_TASK_API = BASE_URL + '/yardstick/asynctask' + +SQLITE = 'sqlite:////tmp/yardstick.db' -- cgit 1.2.3-korg