1 | # -*- coding: utf-8 -*-
|
---|
2 | # $Id: tbreq.py 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
3 |
|
---|
4 | """
|
---|
5 | Test Manager Requests from the TestBox Script.
|
---|
6 | """
|
---|
7 |
|
---|
8 | __copyright__ = \
|
---|
9 | """
|
---|
10 | Copyright (C) 2012-2024 Oracle and/or its affiliates.
|
---|
11 |
|
---|
12 | This file is part of VirtualBox base platform packages, as
|
---|
13 | available from https://www.virtualbox.org.
|
---|
14 |
|
---|
15 | This program is free software; you can redistribute it and/or
|
---|
16 | modify it under the terms of the GNU General Public License
|
---|
17 | as published by the Free Software Foundation, in version 3 of the
|
---|
18 | License.
|
---|
19 |
|
---|
20 | This program is distributed in the hope that it will be useful, but
|
---|
21 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
23 | General Public License for more details.
|
---|
24 |
|
---|
25 | You should have received a copy of the GNU General Public License
|
---|
26 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
27 |
|
---|
28 | The contents of this file may alternatively be used under the terms
|
---|
29 | of the Common Development and Distribution License Version 1.0
|
---|
30 | (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
31 | in the VirtualBox distribution, in which case the provisions of the
|
---|
32 | CDDL are applicable instead of those of the GPL.
|
---|
33 |
|
---|
34 | You may elect to license modified versions of this file under the
|
---|
35 | terms and conditions of either the GPL or the CDDL or both.
|
---|
36 |
|
---|
37 | SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
38 | """
|
---|
39 | __version__ = "$Revision: 106061 $"
|
---|
40 |
|
---|
41 |
|
---|
42 | ## @name Test Manager actions
|
---|
43 | # @{
|
---|
44 | ## TestBox sign-on.
|
---|
45 | SIGNON = 'SIGNON'
|
---|
46 | ## TestBox request for a command while busy (EXEC).
|
---|
47 | REQUEST_COMMAND_BUSY = 'REQUEST_COMMAND_BUSY'
|
---|
48 | ## TestBox request for a command while idling.
|
---|
49 | REQUEST_COMMAND_IDLE = 'REQUEST_COMMAND_IDLE'
|
---|
50 | ## TestBox ACKs a command.
|
---|
51 | COMMAND_ACK = 'COMMAND_ACK'
|
---|
52 | ## TestBox NACKs a command.
|
---|
53 | COMMAND_NACK = 'COMMAND_NACK'
|
---|
54 | ## TestBox NACKs an unsupported command.
|
---|
55 | COMMAND_NOTSUP = 'COMMAND_NOTSUP'
|
---|
56 | ## TestBox adds to the main log.
|
---|
57 | LOG_MAIN = 'LOG_MAIN'
|
---|
58 | ## TestBox uploads a file to the current test result.
|
---|
59 | UPLOAD = 'UPLOAD'
|
---|
60 | ## TestBox reports completion of an EXEC command.
|
---|
61 | EXEC_COMPLETED = 'EXEC_COMPLETED'
|
---|
62 | ## Push more "XML" results to the server.
|
---|
63 | XML_RESULTS = 'XML_RESULTS';
|
---|
64 | ## @}
|
---|
65 |
|
---|
66 |
|
---|
67 | ## @name Parameters for all actions.
|
---|
68 | # @{
|
---|
69 | ALL_PARAM_ACTION = 'ACTION'
|
---|
70 | ALL_PARAM_TESTBOX_ID = 'TESTBOX_ID' ##< Not supplied by SIGNON.
|
---|
71 | ALL_PARAM_TESTBOX_UUID = 'TESTBOX_UUID'
|
---|
72 | ## @}
|
---|
73 |
|
---|
74 | ## @name SIGNON parameters.
|
---|
75 | # @{
|
---|
76 | SIGNON_PARAM_OS = 'OS';
|
---|
77 | SIGNON_PARAM_OS_VERSION = 'OS_VERSION';
|
---|
78 | SIGNON_PARAM_CPU_VENDOR = 'CPU_VENDOR';
|
---|
79 | SIGNON_PARAM_CPU_ARCH = 'CPU_ARCH';
|
---|
80 | SIGNON_PARAM_CPU_NAME = 'CPU_NAME';
|
---|
81 | SIGNON_PARAM_CPU_REVISION = 'CPU_REVISION';
|
---|
82 | SIGNON_PARAM_CPU_COUNT = 'CPU_COUNT';
|
---|
83 | SIGNON_PARAM_HAS_HW_VIRT = 'HAS_HW_VIRT';
|
---|
84 | SIGNON_PARAM_HAS_NESTED_PAGING = 'HAS_NESTED_PAGING';
|
---|
85 | SIGNON_PARAM_HAS_64_BIT_GUEST = 'HAS_64_BIT_GUST';
|
---|
86 | SIGNON_PARAM_HAS_IOMMU = 'HAS_IOMMU';
|
---|
87 | SIGNON_PARAM_WITH_RAW_MODE = 'WITH_RAW_MODE';
|
---|
88 | SIGNON_PARAM_HAS_NATIVE_API = 'HAS_NATIVE_API';
|
---|
89 | SIGNON_PARAM_MEM_SIZE = 'MEM_SIZE';
|
---|
90 | SIGNON_PARAM_SCRATCH_SIZE = 'SCRATCH_SIZE';
|
---|
91 | SIGNON_PARAM_REPORT = 'REPORT';
|
---|
92 | SIGNON_PARAM_SCRIPT_REV = 'SCRIPT_REV';
|
---|
93 | SIGNON_PARAM_PYTHON_VERSION = 'PYTHON_VERSION';
|
---|
94 | ## @}
|
---|
95 |
|
---|
96 | ## @name Parameters for actions reporting results.
|
---|
97 | # @{
|
---|
98 | RESULT_PARAM_TEST_SET_ID = 'TEST_SET_ID'
|
---|
99 | ## @}
|
---|
100 |
|
---|
101 | ## @name EXEC_COMPLETED parameters.
|
---|
102 | # @{
|
---|
103 | EXEC_COMPLETED_PARAM_RESULT = 'EXEC_RESULT'
|
---|
104 | ## @}
|
---|
105 |
|
---|
106 | ## @name COMMAND_ACK, COMMAND_NACK and COMMAND_NOTSUP parameters.
|
---|
107 | # @{
|
---|
108 | ## The name of the command that's being
|
---|
109 | COMMAND_ACK_PARAM_CMD_NAME = 'CMD_NAME'
|
---|
110 | ## @}
|
---|
111 |
|
---|
112 | ## @name LOG_MAIN parameters.
|
---|
113 | ## The log body.
|
---|
114 | LOG_PARAM_BODY = 'LOG_BODY'
|
---|
115 | ## @}
|
---|
116 |
|
---|
117 | ## @name UPLOAD_FILE parameters.
|
---|
118 | ## The file name.
|
---|
119 | UPLOAD_PARAM_NAME = 'UPLOAD_NAME';
|
---|
120 | ## The MIME type of the file.
|
---|
121 | UPLOAD_PARAM_MIME = 'UPLOAD_MIME';
|
---|
122 | ## The kind of file.
|
---|
123 | UPLOAD_PARAM_KIND = 'UPLOAD_KIND';
|
---|
124 | ## The file description.
|
---|
125 | UPLOAD_PARAM_DESC = 'UPLOAD_DESC';
|
---|
126 | ## @}
|
---|
127 |
|
---|
128 | ## @name XML_RESULT parameters.
|
---|
129 | ## The "XML" body.
|
---|
130 | XML_RESULT_PARAM_BODY = 'XML_BODY'
|
---|
131 | ## @}
|
---|
132 |
|
---|