update installer under scenario
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 23 Aug 2017 07:11:51 +0000 (15:11 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Fri, 25 Aug 2017 05:54:44 +0000 (13:54 +0800)
commit9362a0b32359f9ad788e42e6f5207f3c6f6e08b0
tree3999be728a606d98d4f92fb7e8ec29e3c7a0586e
parentba0f958ee7f5d0b632f16578fafd7de45997b291
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>
testapi/opnfv_testapi/resources/scenario_handlers.py
testapi/opnfv_testapi/router/url_mappings.py
testapi/opnfv_testapi/tests/unit/resources/test_scenario.py