1 | # -*- coding: utf-8 -*-
|
---|
2 | # $Id: tbresp.py 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
3 |
|
---|
4 | """
|
---|
5 | Test Manager Responses to 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 | ## All test manager actions responses to the testbox include a RESULT field.
|
---|
43 | ALL_PARAM_RESULT = 'RESULT'
|
---|
44 |
|
---|
45 | ## @name Statuses (returned in ALL_PARAM_RESULT).
|
---|
46 | ## Acknowledgement.
|
---|
47 | STATUS_ACK = 'ACK'
|
---|
48 | ## Negative acknowledgement.
|
---|
49 | STATUS_NACK = 'NACK'
|
---|
50 | ## The testbox is dead, i.e. it no longer exists with the test manager.
|
---|
51 | # @note Not used by the SIGNON action, but all the rest uses it.
|
---|
52 | STATUS_DEAD = 'DEAD'
|
---|
53 | ## @}
|
---|
54 |
|
---|
55 | ## @name Command names (returned in ALL_PARAM_RESULT).
|
---|
56 | # @{
|
---|
57 | CMD_IDLE = 'IDLE'
|
---|
58 | CMD_WAIT = 'WAIT'
|
---|
59 | CMD_EXEC = 'EXEC'
|
---|
60 | CMD_ABORT = 'ABORT'
|
---|
61 | CMD_REBOOT = 'REBOOT'
|
---|
62 | CMD_UPGRADE = 'UPGRADE'
|
---|
63 | CMD_UPGRADE_AND_REBOOT = 'UPGRADE_AND_REBOOT'
|
---|
64 | CMD_SPECIAL = 'SPECIAL'
|
---|
65 | ## @ }
|
---|
66 |
|
---|
67 | ## @name SIGNON parameter names.
|
---|
68 | # @{
|
---|
69 | ## The TestBox ID.
|
---|
70 | SIGNON_PARAM_ID = 'TESTBOX_ID'
|
---|
71 | ## The TestBox name.
|
---|
72 | SIGNON_PARAM_NAME = 'TESTBOX_NAME'
|
---|
73 | ## @}
|
---|
74 |
|
---|
75 |
|
---|
76 | ## @name EXEC parameter names
|
---|
77 | # @{
|
---|
78 | ## The test set id, used for reporting results.
|
---|
79 | EXEC_PARAM_RESULT_ID = 'TEST_SET_ID'
|
---|
80 | ## The file to download/copy and unpack into TESTBOX_SCRIPT.
|
---|
81 | EXEC_PARAM_SCRIPT_ZIPS = 'SCRIPT_ZIPS'
|
---|
82 | ## The testcase invocation command line (bourne shell style).
|
---|
83 | EXEC_PARAM_SCRIPT_CMD_LINE = 'SCRIPT_CMD_LINE'
|
---|
84 | ## The testcase timeout in seconds.
|
---|
85 | EXEC_PARAM_TIMEOUT = 'TIMEOUT'
|
---|
86 | ## @}
|
---|
87 |
|
---|
88 | ## @name UPGRADE and @name UPGRADE_AND_REBOOT parameter names.
|
---|
89 | # @{
|
---|
90 | ## A URL for downloading new version of Test Box Script archive
|
---|
91 | UPGRADE_PARAM_URL = 'DOWNLOAD_URL'
|
---|
92 | ## @}
|
---|
93 |
|
---|