summaryrefslogtreecommitdiffstats
path: root/result_collection_api/tests/unit/test_testcase.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-25 22:56:11 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-26 14:18:08 +0800
commite6b2ed1749f5daad7a15a878df301e017a15d832 (patch)
tree9ff6949f543269c06c0d7828f6a50a1b3b6ac807 /result_collection_api/tests/unit/test_testcase.py
parentf204fed9d8519f994b085a1139f036bc40fcddbc (diff)
attach version number to url in testAPI
version - /versions api - /api/v1/pods(projects/results) dashboard - /dashboard/v1/results I tried to make the code smart, but in vain, sad...... JIRA: FUNCTEST-261 Change-Id: I3e9e3ad7180a6c6349fd743e24eafea07bdefd1d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/tests/unit/test_testcase.py')
-rw-r--r--result_collection_api/tests/unit/test_testcase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/result_collection_api/tests/unit/test_testcase.py b/result_collection_api/tests/unit/test_testcase.py
index e44c0b4..712a4e7 100644
--- a/result_collection_api/tests/unit/test_testcase.py
+++ b/result_collection_api/tests/unit/test_testcase.py
@@ -29,7 +29,7 @@ class TestCaseBase(TestBase):
self.get_res = Testcase
self.list_res = Testcases
self.update_res = Testcase
- self.basePath = '/projects/%s/cases'
+ self.basePath = '/api/v1/projects/%s/cases'
self.create_project()
def assert_body(self, case, req=None):
@@ -52,7 +52,7 @@ class TestCaseBase(TestBase):
def create_project(self):
req_p = ProjectCreateRequest('functest', 'vping-ssh test')
- self.create_help('/projects', req_p)
+ self.create_help('/api/v1/projects', req_p)
self.project = req_p.name
def create_d(self):