summaryrefslogtreecommitdiffstats
path: root/api/resources
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2018-03-22 12:37:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-22 12:37:28 +0000
commit3a8305d3cc4dde0bda09285c8e133529c3c0958a (patch)
treeb372b2fbf793993315373151f80ed54f9f61d097 /api/resources
parent2d69cef8d4a672ca2595acd5bbbf6267bd6f352b (diff)
parent460d405731533c81f14e9391ae693e8da6ced730 (diff)
Merge "Bugfix: Error when using API(v1) to run test suite"
Diffstat (limited to 'api/resources')
-rw-r--r--api/resources/v1/testsuites.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/resources/v1/testsuites.py b/api/resources/v1/testsuites.py
index 5f72c2ea6..3e14670b4 100644
--- a/api/resources/v1/testsuites.py
+++ b/api/resources/v1/testsuites.py
@@ -20,6 +20,7 @@ from yardstick.common.utils import result_handler
from yardstick.benchmark.core import Param
from yardstick.benchmark.core.task import Task
from api.swagger import models
+from api.database.v1.handlers import TasksHandler
LOG = logging.getLogger(__name__)
LOG.setLevel(logging.DEBUG)
@@ -58,7 +59,7 @@ class V1Testsuite(ApiResource):
task_args.update(args.get('opts', {}))
param = Param(task_args)
- task_thread = TaskThread(Task().start, param)
+ task_thread = TaskThread(Task().start, param, TasksHandler())
task_thread.start()
return result_handler(consts.API_SUCCESS, {'task_id': task_id})