diff options
author | 2017-08-18 18:01:14 +0800 | |
---|---|---|
committer | 2017-08-21 17:18:51 +0800 | |
commit | 13b7ba7e2976ddbafb0dfa7b8bee6a3351c1f187 (patch) | |
tree | f1d6922bdabd3b4adabe999230438139bf21b36c /utils/test/testapi/opnfv_testapi/common/raises.py | |
parent | d9950c167886a2df6684de313d95f5aa3f8d89ed (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 'utils/test/testapi/opnfv_testapi/common/raises.py')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/common/raises.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/common/raises.py b/utils/test/testapi/opnfv_testapi/common/raises.py index ec6b8a564..55c58c9e2 100644 --- a/utils/test/testapi/opnfv_testapi/common/raises.py +++ b/utils/test/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 |