From: Rex Lee Date: Wed, 11 Jan 2017 03:03:10 +0000 (+0000) Subject: Merge "Create API to run test suite" X-Git-Tag: danube.1.0~141 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=708550dd0718abdad8862e2275cc8e025a7c55e3;p=yardstick.git Merge "Create API to run test suite" --- 708550dd0718abdad8862e2275cc8e025a7c55e3 diff --cc api/urls.py index 273fb40f8,7f9f0bb07..58df29142 --- a/api/urls.py +++ b/api/urls.py @@@ -11,9 -11,9 +11,10 @@@ from api.utils.common import Ur urlpatterns = [ + Url('/yardstick/asynctask', views.Asynctask, 'asynctask'), Url('/yardstick/testcases/release/action', views.ReleaseAction, 'release'), Url('/yardstick/testcases/samples/action', views.SamplesAction, 'samples'), + Url('/yardstick/testsuites/action', views.TestsuitesAction, 'testsuites'), Url('/yardstick/results', views.Results, 'results'), Url('/yardstick/env/action', views.EnvAction, 'env') ] diff --cc api/views.py index 69ca89186,bdff7c0d9..eb81145fc --- a/api/views.py +++ b/api/views.py @@@ -24,13 -24,8 +24,13 @@@ TestCaseActionArgsOptsModel = models.Te TestCaseActionArgsOptsTaskArgModel = models.TestCaseActionArgsOptsTaskArgModel +class Asynctask(ApiResource): + def get(self): + return self._dispatch_get() + + class ReleaseAction(ApiResource): - @swag_from(os.getcwd() + '/swagger/docs/testcases.yaml') + @swag_from(os.getcwd() + '/swagger/docs/release_action.yaml') def post(self): return self._dispatch_post()