summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-23 15:11:51 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-25 13:54:44 +0800
commit9362a0b32359f9ad788e42e6f5207f3c6f6e08b0 (patch)
tree3999be728a606d98d4f92fb7e8ec29e3c7a0586e /testapi/opnfv_testapi/router
parentba0f958ee7f5d0b632f16578fafd7de45997b291 (diff)
update installer under scenario
1. post, add one or more new installers 2. update, replace existed installers as a totality 3. delete, delete one or more installers by name 4. in post&update, if schema is not consistent with ScenarioInstaller model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if installer already exist, return Conflict with already exist message 6. in update, if a installer appears more than once, also return Conflict with already exist message Change-Id: I830dba3bcf5f1a9d1c93513b4aae59009f69dc8f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/router')
-rw-r--r--testapi/opnfv_testapi/router/url_mappings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/router/url_mappings.py b/testapi/opnfv_testapi/router/url_mappings.py
index bdfc701..3e3ab87 100644
--- a/testapi/opnfv_testapi/router/url_mappings.py
+++ b/testapi/opnfv_testapi/router/url_mappings.py
@@ -66,6 +66,8 @@ mappings = [
scenario_handlers.ScenarioOwnerHandler),
(r"/api/v1/scenarios/([^/]+)/versions",
scenario_handlers.ScenarioVersionsHandler),
+ (r"/api/v1/scenarios/([^/]+)/installers",
+ scenario_handlers.ScenarioInstallersHandler),
# static path
(r'/(.*\.(css|png|gif|js|html|json|map|woff2|woff|ttf))',