Merge "Create API to run test suite"
authorRex Lee <limingjiang@huawei.com>
Wed, 11 Jan 2017 03:03:10 +0000 (03:03 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 11 Jan 2017 03:03:10 +0000 (03:03 +0000)
1  2 
api/urls.py
api/views.py

diff --cc 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
@@@ -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()