update projects in scenario 83/39583/5
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)
commit13b7ba7e2976ddbafb0dfa7b8bee6a3351c1f187
treef1d6922bdabd3b4adabe999230438139bf21b36c
parentd9950c167886a2df6684de313d95f5aa3f8d89ed
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>
utils/test/testapi/opnfv_testapi/common/raises.py
utils/test/testapi/opnfv_testapi/resources/handlers.py
utils/test/testapi/opnfv_testapi/resources/models.py
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
utils/test/testapi/opnfv_testapi/tornado_swagger/swagger.py