1 ##############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from __future__ import absolute_import
10 from flask_restful import fields
11 from flask_restful_swagger import swagger
14 # for testcases/action runTestCase action
16 class TestCaseActionArgsOptsTaskArgModel:
22 class TestCaseActionArgsOptsModel:
24 'task-args': TestCaseActionArgsOptsTaskArgModel,
25 'keep-deploy': fields.String,
26 'suite': fields.String
31 class TestCaseActionArgsModel:
33 'testcase': fields.String,
34 'opts': TestCaseActionArgsOptsModel
39 class TestCaseActionModel:
41 'action': fields.String,
42 'args': TestCaseActionArgsModel
46 # for testsuite/action runTestSuite action
48 class TestSuiteActionArgsOptsTaskArgModel:
54 class TestSuiteActionArgsOptsModel:
56 'task-args': TestSuiteActionArgsOptsTaskArgModel,
57 'keep-deploy': fields.String,
58 'suite': fields.String
62 class TestSuiteActionArgsModel:
64 'testsuite': fields.String,
65 'opts': TestSuiteActionArgsOptsModel
70 class TestSuiteActionModel:
72 'action': fields.String,
73 'args': TestSuiteActionArgsModel
81 'status': fields.String,