update installer under scenario 53/39953/3
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)
commit858f34a8a3bd8949260dc37f87d13864617ad944
treed8574471f1bca5c2721250c3ec6df44adb4e9f7d
parent737948891836bea1ebc542f7c2b53a23d53e174d
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>
utils/test/testapi/opnfv_testapi/resources/scenario_handlers.py
utils/test/testapi/opnfv_testapi/router/url_mappings.py
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py