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 flask_restful import fields
10 from flask_restful_swagger import swagger
13 # for testcases/action runTestCase action
15 class TestCaseActionArgsOptsTaskArgModel:
21 class TestCaseActionArgsOptsModel:
23 'task-args': TestCaseActionArgsOptsTaskArgModel,
24 'keep-deploy': fields.String,
25 'suite': fields.String
30 class TestCaseActionArgsModel:
32 'testcase': fields.String,
33 'opts': TestCaseActionArgsOptsModel
38 class TestCaseActionModel:
40 'action': fields.String,
41 'args': TestCaseActionArgsModel
49 'status': fields.String,