diff options
Diffstat (limited to 'api/swagger/models.py')
-rw-r--r-- | api/swagger/models.py | 31 |
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: |