aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-09-07 11:30:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-07 11:30:45 +0000
commit35b12a96447adc11908827e6434bfe9761b46a48 (patch)
tree4f603f2611af9ee323af87b66c546eae11914c46 /functest
parent5c95b492ff11f9f5373a643ad05cc23f29036d0b (diff)
parent6a37f26bf045b267933b3eea8eaf948deb0d682b (diff)
Merge "Unify the key as testcase in result"
Diffstat (limited to 'functest')
-rw-r--r--functest/api/resources/v1/testcases.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/api/resources/v1/testcases.py b/functest/api/resources/v1/testcases.py
index b7d7b4aa3..cc2d4e193 100644
--- a/functest/api/resources/v1/testcases.py
+++ b/functest/api/resources/v1/testcases.py
@@ -89,8 +89,8 @@ class V1Testcase(ApiResource):
task_thread = thread.TaskThread(self._run, task_args, TasksHandler())
task_thread.start()
- results = {'testcase': case_name, 'task_id': task_id}
- return jsonify(results)
+ result = {'testcase': case_name, 'task_id': task_id}
+ return jsonify({'result': result})
def _run(self, args): # pylint: disable=no-self-use
""" The built_in function to run a test case """
@@ -120,7 +120,7 @@ class V1Testcase(ApiResource):
}
result = {
'task_id': args.get('task_id'),
- 'case_name': case_name,
+ 'testcase': case_name,
'env_info': env_info,
'result': result
}