aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/base.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-22 04:01:38 +0000
committerLinda Wang <wangwulin@huawei.com>2017-08-25 01:16:21 +0000
commitdc73f1b7cb3afffcace97e3ede9dd25639def6e2 (patch)
treee60584f50b24af707b0981deb8bd1b058b98b863 /functest/api/base.py
parentad44bfd97555a7372269db539857fd53fffb0460 (diff)
Create API to get log for each task
API: /api/v1/functest/tasks/<task_id>/log METHOD: GET JIRA: FUNCTEST-867 Change-Id: I987cbf662e4da349bf7583e48da5d981a2f1e0fd Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/api/base.py')
-rw-r--r--functest/api/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/functest/api/base.py b/functest/api/base.py
index ffc56786..75f059b7 100644
--- a/functest/api/base.py
+++ b/functest/api/base.py
@@ -45,6 +45,11 @@ class ApiResource(Resource):
return action, args
+ def _get_args(self): # pylint: disable=no-self-use
+ """ Convert the unicode to string for request.args """
+ args = api_utils.change_to_str_in_dict(request.args)
+ return args
+
def _dispatch_post(self):
""" Dispatch request """
action, args = self._post_args()