summaryrefslogtreecommitdiffstats
path: root/api/swagger/models.py
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-01-11 03:03:10 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-11 03:03:10 +0000
commit708550dd0718abdad8862e2275cc8e025a7c55e3 (patch)
treeb11161934a59b336842fdd1658791c9d176b4eba /api/swagger/models.py
parent205729564104b309058ad011f1daf402a285d7b8 (diff)
parent52ae99e54fc67614e71bf1920848bb7b16bcd153 (diff)
Merge "Create API to run test suite"
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: