diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-09-07 11:30:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-07 11:30:45 +0000 |
commit | 35b12a96447adc11908827e6434bfe9761b46a48 (patch) | |
tree | 4f603f2611af9ee323af87b66c546eae11914c46 /functest | |
parent | 5c95b492ff11f9f5373a643ad05cc23f29036d0b (diff) | |
parent | 6a37f26bf045b267933b3eea8eaf948deb0d682b (diff) |
Merge "Unify the key as testcase in result"
Diffstat (limited to 'functest')
-rw-r--r-- | functest/api/resources/v1/testcases.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/api/resources/v1/testcases.py b/functest/api/resources/v1/testcases.py index b7d7b4aa..cc2d4e19 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 } |