diff options
author | 2016-05-19 18:13:27 +0800 | |
---|---|---|
committer | 2016-05-19 18:18:07 +0800 | |
commit | f25ad4e8a7e4bd6505b2144494da81fbcad40b7d (patch) | |
tree | c811d7b15048680d7d6717beb02bfbfa75aea717 /utils/test/result_collection_api/result_collection_api.py | |
parent | 598be795dec8fa11bee7b6e140b33947ab35b8f0 (diff) |
add unittests of project & refactor response
post body: {'href':'<http://ip:8000/pods/pod_name >'}
get body: Pod/Project
list body: list of Pod/Project
update body: Pod/Project
delete: no body
JIRA: FUNCTEST-253
Change-Id: I28c6f5b35d8909d827f2f803197d95be4abd44bb
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/result_collection_api.py')
-rw-r--r-- | utils/test/result_collection_api/result_collection_api.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/test/result_collection_api/result_collection_api.py b/utils/test/result_collection_api/result_collection_api.py index 69c03b899..b9a9971c7 100644 --- a/utils/test/result_collection_api/result_collection_api.py +++ b/utils/test/result_collection_api/result_collection_api.py @@ -19,7 +19,7 @@ TODOs : - json args validation with schemes - POST/PUT/DELETE for PODs - POST/PUT/GET/DELETE for installers, platforms (enrich results info) - - count cases for GET on test_projects + - count cases for GET on projects - count results for GET on cases - include objects - swagger documentation @@ -63,16 +63,16 @@ def make_app(): (r"/pods/([^/]+)", PodHandler), # few examples: - # GET /test_projects - # GET /test_projects/yardstick - (r"/test_projects", TestProjectHandler), - (r"/test_projects/([^/]+)", TestProjectHandler), + # GET /projects + # GET /projects/yardstick + (r"/projects", TestProjectHandler), + (r"/projects/([^/]+)", TestProjectHandler), # few examples - # GET /test_projects/qtip/cases => Get cases for qtip + # GET /projects/qtip/cases => Get cases for qtip # - (r"/test_projects/([^/]+)/cases", TestCasesHandler), - (r"/test_projects/([^/]+)/cases/([^/]+)", TestCasesHandler), + (r"/projects/([^/]+)/cases", TestCasesHandler), + (r"/projects/([^/]+)/cases/([^/]+)", TestCasesHandler), # (r"/test_cases/([^/]+)", TestCasesHandler), # new path to avoid a long depth |