update projects in scenario
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Fri, 18 Aug 2017 10:01:14 +0000 (18:01 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 21 Aug 2017 09:18:51 +0000 (17:18 +0800)
commit53a6af264a6c5d8a32d364270f4ef95e8769e3e3
treedcac5521c906f2d97f8f7ee028e7fcf28d5bf6ca
parent2a2585dd89fe1c642c892ea12c52bf4119c4c93e
update projects in scenario

1. post, add one or more new projects
2. update, replace existed projects wholly
3. delete, delete one or more projects by name
4. in post&update, if schema is not consistent with ScenarioProject model,
BadRequest will be raised(only extra keys will be detected currently)
5. in post, if project already exist, return Conflict with already exist
message

Change-Id: Iead585f787a4acc61abce6c9d38a036739b498d6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testapi/opnfv_testapi/common/raises.py
testapi/opnfv_testapi/resources/handlers.py
testapi/opnfv_testapi/resources/models.py
testapi/opnfv_testapi/resources/scenario_handlers.py
testapi/opnfv_testapi/router/url_mappings.py
testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
testapi/opnfv_testapi/tornado_swagger/swagger.py