summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-04 13:16:21 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-04 13:16:21 +0800
commit67ce8e57e4400f6734a999b40ccd8c3f6a489094 (patch)
treefa12259a9af0b41852ddec6130ba3ab9f420e198 /utils/test/result_collection_api/opnfv_testapi/router
parent7a8c4df8fcb74e04b4b6dbbe2b28698030282338 (diff)
support 'GET /dashboard/v1/projects' REST api in testAPI
add get_dashboard_projects() in dashboard_utils.py add DashboardProjectHandler in dashboard_handlers.py add router mapping in url_mappings.py add file test_dashboard_project.py to do the unittest JIRA: FUNCTEST-292 Change-Id: I51ad8dd26abbd8d43c656c8b03ff302227255d11 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/router')
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py b/utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py
index 874754b91..695c27de1 100644
--- a/utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py
+++ b/utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py
@@ -14,7 +14,8 @@ from opnfv_testapi.resources.project_handlers import ProjectCLHandler, \
ProjectGURHandler
from opnfv_testapi.resources.result_handlers import ResultsCLHandler, \
ResultsGURHandler
-from opnfv_testapi.resources.dashboard_handlers import DashboardHandler
+from opnfv_testapi.resources.dashboard_handlers import DashboardHandler, \
+ DashboardProjectsHandler
mappings = [
@@ -53,4 +54,5 @@ mappings = [
# get /dashboard
# => get the list of project with dashboard ready results
(r"/dashboard/v1/results", DashboardHandler),
+ (r"/dashboard/v1/projects", DashboardProjectsHandler),
]