summaryrefslogtreecommitdiffstats
path: root/api/swagger/models.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/swagger/models.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/swagger/models.py')
-rw-r--r--api/swagger/models.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/api/swagger/models.py b/api/swagger/models.py
index 7c65fbbf5..9a0157e0e 100644
--- a/api/swagger/models.py
+++ b/api/swagger/models.py
@@ -42,6 +42,37 @@ class TestCaseActionModel:
}
+# for testsuite/action runTestSuite action
+@swagger.model
+class TestSuiteActionArgsOptsTaskArgModel:
+ resource_fields = {
+ }
+
+
+@swagger.model
+class TestSuiteActionArgsOptsModel:
+ resource_fields = {
+ 'task-args': TestSuiteActionArgsOptsTaskArgModel,
+ 'keep-deploy': fields.String,
+ 'suite': fields.String
+ }
+
+@swagger.model
+class TestSuiteActionArgsModel:
+ resource_fields = {
+ 'testsuite': fields.String,
+ 'opts': TestSuiteActionArgsOptsModel
+ }
+
+
+@swagger.model
+class TestSuiteActionModel:
+ resource_fields = {
+ 'action': fields.String,
+ 'args': TestSuiteActionArgsModel
+ }
+
+
# for results
@swagger.model
class ResultModel: