From 13b7ba7e2976ddbafb0dfa7b8bee6a3351c1f187 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 --- utils/test/testapi/opnfv_testapi/resources/handlers.py | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/test/testapi/opnfv_testapi/resources/handlers.py') diff --git a/utils/test/testapi/opnfv_testapi/resources/handlers.py b/utils/test/testapi/opnfv_testapi/resources/handlers.py index aa77da25d..240fa0a39 100644 --- a/utils/test/testapi/opnfv_testapi/resources/handlers.py +++ b/utils/test/testapi/opnfv_testapi/resources/handlers.py @@ -194,6 +194,7 @@ class GenericApiHandler(web.RequestHandler): data = self.table_cls.from_dict(data) update_req = self._update_requests(data) yield dbapi.db_update(self.table, query, update_req) + self.finish_request() def _update_requests(self, data): request = dict() -- cgit 1.2.3-korg