diff options
author | 2016-05-26 06:39:07 +0000 | |
---|---|---|
committer | 2016-05-26 06:39:07 +0000 | |
commit | 2377f84d9142dad19bfabc795d3a5a73e3c67533 (patch) | |
tree | 80ca788cb1dfe5a6241a102c61c8eea26cd4d9d7 /utils/test/result_collection_api/tests/unit/test_result.py | |
parent | 3942c39c0b7b460a40571b70b5647bf147b298b3 (diff) | |
parent | 119faa49c41ab093aaa9767e906b448198e5c6c4 (diff) |
Merge "attach version number to url in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/tests/unit/test_result.py')
-rw-r--r-- | utils/test/result_collection_api/tests/unit/test_result.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/test/result_collection_api/tests/unit/test_result.py b/utils/test/result_collection_api/tests/unit/test_result.py index 9e27e3c3c..9c5093ed1 100644 --- a/utils/test/result_collection_api/tests/unit/test_result.py +++ b/utils/test/result_collection_api/tests/unit/test_result.py @@ -67,15 +67,17 @@ class TestResultBase(TestBase): trust_indicator=self.trust_indicator) self.get_res = TestResult self.list_res = TestResults - self.basePath = '/results' + self.basePath = '/api/v1/results' self.req_pod = PodCreateRequest(self.pod, 'metal', 'zte pod 1') self.req_project = ProjectCreateRequest(self.project, 'vping test') self.req_testcase = TestcaseCreateRequest('/cases/vping', self.case, 'vping-ssh test') - self.create_help('/pods', self.req_pod) - self.create_help('/projects', self.req_project) - self.create_help('/projects/%s/cases', self.req_testcase, self.project) + self.create_help('/api/v1/pods', self.req_pod) + self.create_help('/api/v1/projects', self.req_project) + self.create_help('/api/v1/projects/%s/cases', + self.req_testcase, + self.project) def assert_res(self, code, result): self.assertEqual(code, HTTP_OK) |