From 52ae99e54fc67614e71bf1920848bb7b16bcd153 Mon Sep 17 00:00:00 2001 From: JingLu5 Date: Thu, 22 Dec 2016 12:07:55 +0800 Subject: 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 --- api/swagger/models.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'api/swagger/models.py') 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: -- cgit 1.2.3-korg