summaryrefslogtreecommitdiffstats
path: root/api/views.py
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2016-12-22 12:07:55 +0800
committerJingLu5 <lvjing5@huawei.com>2017-01-10 15:31:35 +0000
commit52ae99e54fc67614e71bf1920848bb7b16bcd153 (patch)
tree1590f685827ad1a91e550e3b013e3e25fb2dd224 /api/views.py
parent74479a22c461cc2c08f9525879481c0a86d3af84 (diff)
Create API to run test suite
JIRA: YARDSTICK-475 This API will be used to run test suite files in the test/opnfv/test_suites directory Change-Id: I208edf9abed62fd6436de988ac85bfe99c4d01bd Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'api/views.py')
-rw-r--r--api/views.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/api/views.py b/api/views.py
index ee13b47a9..bdff7c0d9 100644
--- a/api/views.py
+++ b/api/views.py
@@ -25,7 +25,7 @@ TestCaseActionArgsOptsTaskArgModel = models.TestCaseActionArgsOptsTaskArgModel
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()
@@ -35,6 +35,18 @@ class SamplesAction(ApiResource):
return self._dispatch_post()
+TestSuiteActionModel = models.TestSuiteActionModel
+TestSuiteActionArgsModel = models.TestSuiteActionArgsModel
+TestSuiteActionArgsOptsModel = models.TestSuiteActionArgsOptsModel
+TestSuiteActionArgsOptsTaskArgModel = models.TestSuiteActionArgsOptsTaskArgModel
+
+
+class TestsuitesAction(ApiResource):
+ @swag_from(os.getcwd() + '/swagger/docs/testsuites_action.yaml')
+ def post(self):
+ return self._dispatch_post()
+
+
ResultModel = models.ResultModel