From e6b2ed1749f5daad7a15a878df301e017a15d832 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 25 May 2016 22:56:11 +0800 Subject: 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 --- result_collection_api/tests/unit/test_testcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'result_collection_api/tests/unit/test_testcase.py') 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): -- cgit 1.2.3-korg