diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-08-18 18:01:14 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-08-21 17:18:51 +0800 |
commit | 53a6af264a6c5d8a32d364270f4ef95e8769e3e3 (patch) | |
tree | dcac5521c906f2d97f8f7ee028e7fcf28d5bf6ca /testapi/opnfv_testapi/common | |
parent | 2a2585dd89fe1c642c892ea12c52bf4119c4c93e (diff) |
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>
Diffstat (limited to 'testapi/opnfv_testapi/common')
-rw-r--r-- | testapi/opnfv_testapi/common/raises.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/common/raises.py b/testapi/opnfv_testapi/common/raises.py index ec6b8a5..55c58c9 100644 --- a/testapi/opnfv_testapi/common/raises.py +++ b/testapi/opnfv_testapi/common/raises.py @@ -26,6 +26,10 @@ class Forbidden(Raiser): code = httplib.FORBIDDEN +class Conflict(Raiser): + code = httplib.CONFLICT + + class NotFound(Raiser): code = httplib.NOT_FOUND |