summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-14 17:41:02 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-15 17:46:09 +0800
commit56a90d46a33cb4e47bffc9c3a656997f518b92ba (patch)
tree7122f3f59570988a9bc73dc95a6f6609fc80f8f7 /utils/test/testapi/opnfv_testapi/router
parent5c0905e1b578c2dde4bf5585694696bc66f1ba1f (diff)
update scenario scores
update score url: POST /api/v1/scenarios/<scenario_name>/scores? \ installer=<installer_name>& \ version=<version_name>& \ project=<project_name> add new score record interface add unit test add swagger specification Change-Id: Ib7bb31f303a9a9402325476bfdadb58aa0df560e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/router')
-rw-r--r--utils/test/testapi/opnfv_testapi/router/url_mappings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/router/url_mappings.py b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
index 562fa5efe..4f990f03e 100644
--- a/utils/test/testapi/opnfv_testapi/router/url_mappings.py
+++ b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
@@ -54,6 +54,8 @@ mappings = [
# scenarios
(r"/api/v1/scenarios", scenario_handlers.ScenariosCLHandler),
(r"/api/v1/scenarios/([^/]+)", scenario_handlers.ScenarioGURHandler),
+ (r"/api/v1/scenarios/([^/]+)/scores",
+ scenario_handlers.ScenarioScoresHandler),
# static path
(r'/(.*\.(css|png|gif|js|html|json|map|woff2|woff|ttf))',