summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-21 17:27:52 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-21 17:34:06 +0800
commitd36c8831a33f0c91d5eec8817ba835393406d6bd (patch)
tree14e57e6a81327de79e92655b78d58b35e3ea4f91 /utils/test/testapi/opnfv_testapi/router
parent13b7ba7e2976ddbafb0dfa7b8bee6a3351c1f187 (diff)
change scenario owner
1 bugfix owner must be explicit in ScenarioVersion model 2 change owner of scenario 3. usage: PUT /api/v1/scenarios/<scenario_name>/owner? \ installer=<installer_name>& \ version=<version_name> body: new owner Change-Id: I261468cd8445030b61e37e0f804b699d6205bdb0 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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/router/url_mappings.py b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
index dc3b656a5..9c9556c6b 100644
--- a/utils/test/testapi/opnfv_testapi/router/url_mappings.py
+++ b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
@@ -60,9 +60,10 @@ mappings = [
scenario_handlers.ScenarioTIsHandler),
(r"/api/v1/scenarios/([^/]+)/customs",
scenario_handlers.ScenarioCustomsHandler),
-
(r"/api/v1/scenarios/([^/]+)/projects",
scenario_handlers.ScenarioProjectsHandler),
+ (r"/api/v1/scenarios/([^/]+)/owner",
+ scenario_handlers.ScenarioOwnerHandler),
# static path
(r'/(.*\.(css|png|gif|js|html|json|map|woff2|woff|ttf))',