summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/resources
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-23 15:14:47 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-23 15:14:47 +0800
commiteb6e1770d332d23f90d113196e24346816974f01 (patch)
tree69ea92a7a4e272ac3c15cd2a10df62401813d791 /testapi/opnfv_testapi/resources
parenta6460e1b2ebcdbb6f823f26b03e1210c8212497c (diff)
fix: always return 200 even if exception happens
when post/update/delete is executed, the return value always are 200, even if exceptions such as 404/409 happen Change-Id: I612ad15cc6567f435caa4c889bb0c7b6a73f9c52 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/resources')
-rw-r--r--testapi/opnfv_testapi/resources/handlers.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/testapi/opnfv_testapi/resources/handlers.py b/testapi/opnfv_testapi/resources/handlers.py
index 8255b52..1509646 100644
--- a/testapi/opnfv_testapi/resources/handlers.py
+++ b/testapi/opnfv_testapi/resources/handlers.py
@@ -92,8 +92,6 @@ class GenericApiHandler(web.RequestHandler):
raise gen.Return(ret)
return wrapper
- @web.asynchronous
- @gen.coroutine
@authenticate
def _create(self, miss_checks, db_checks, **kwargs):
"""
@@ -158,8 +156,6 @@ class GenericApiHandler(web.RequestHandler):
.format(query, self.table))
self.finish_request(self.format_data(data))
- @web.asynchronous
- @gen.coroutine
@authenticate
def _delete(self, query):
data = yield self._eval_db_find_one(query)
@@ -171,8 +167,6 @@ class GenericApiHandler(web.RequestHandler):
yield self._eval_db(self.table, 'remove', query)
self.finish_request()
- @web.asynchronous
- @gen.coroutine
@authenticate
def _update(self, query, db_keys):
if self.json_args is None: