summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-17 18:43:56 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-18 15:41:25 +0800
commitd9950c167886a2df6684de313d95f5aa3f8d89ed (patch)
treef1ca0afdd35b333af44c5b837eb19db10b855557 /utils/test/testapi/opnfv_testapi/router
parent1fce3258fae5cf6a99af93b6ea026fec4d839cd6 (diff)
update customs in scenario
1) post to add one or multiple test cases 2) update to substitute all the test cases 3) delete with body to delete one or multiple test cases 4) to facilitate the process and response body usually useless, if update success all updates(scores/trust_indicators/customs), return 200 with no response body Change-Id: I5148f172989fa8e0e70ffed92ee383c0520dbb41 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 458942576..4c30eb573 100644
--- a/utils/test/testapi/opnfv_testapi/router/url_mappings.py
+++ b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
@@ -58,6 +58,8 @@ mappings = [
scenario_handlers.ScenarioScoresHandler),
(r"/api/v1/scenarios/([^/]+)/trust_indicators",
scenario_handlers.ScenarioTIsHandler),
+ (r"/api/v1/scenarios/([^/]+)/customs",
+ scenario_handlers.ScenarioCustomsHandler),
# static path
(r'/(.*\.(css|png|gif|js|html|json|map|woff2|woff|ttf))',