From 53a6af264a6c5d8a32d364270f4ef95e8769e3e3 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Fri, 18 Aug 2017 18:01:14 +0800 Subject: 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 --- testapi/opnfv_testapi/common/raises.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testapi/opnfv_testapi/common/raises.py') 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 -- cgit 1.2.3-korg