1 | # -*- coding: utf-8 -*-
|
---|
2 | # $Id: tbresp.py 69111 2017-10-17 14:26:02Z vboxsync $
|
---|
3 |
|
---|
4 | """
|
---|
5 | Test Manager Responses to the TestBox Script.
|
---|
6 | """
|
---|
7 |
|
---|
8 | __copyright__ = \
|
---|
9 | """
|
---|
10 | Copyright (C) 2012-2017 Oracle Corporation
|
---|
11 |
|
---|
12 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
13 | available from http://www.virtualbox.org. This file is free software;
|
---|
14 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
15 | General Public License (GPL) as published by the Free Software
|
---|
16 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
17 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
18 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
19 |
|
---|
20 | The contents of this file may alternatively be used under the terms
|
---|
21 | of the Common Development and Distribution License Version 1.0
|
---|
22 | (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
23 | VirtualBox OSE distribution, in which case the provisions of the
|
---|
24 | CDDL are applicable instead of those of the GPL.
|
---|
25 |
|
---|
26 | You may elect to license modified versions of this file under the
|
---|
27 | terms and conditions of either the GPL or the CDDL or both.
|
---|
28 | """
|
---|
29 | __version__ = "$Revision: 69111 $"
|
---|
30 |
|
---|
31 |
|
---|
32 | ## All test manager actions responses to the testbox include a RESULT field.
|
---|
33 | ALL_PARAM_RESULT = 'RESULT'
|
---|
34 |
|
---|
35 | ## @name Statuses (returned in ALL_PARAM_RESULT).
|
---|
36 | ## Acknowledgement.
|
---|
37 | STATUS_ACK = 'ACK'
|
---|
38 | ## Negative acknowledgement.
|
---|
39 | STATUS_NACK = 'NACK'
|
---|
40 | ## The testbox is dead, i.e. it no longer exists with the test manager.
|
---|
41 | # @note Not used by the SIGNON action, but all the rest uses it.
|
---|
42 | STATUS_DEAD = 'DEAD'
|
---|
43 | ## @}
|
---|
44 |
|
---|
45 | ## @name Command names (returned in ALL_PARAM_RESULT).
|
---|
46 | # @{
|
---|
47 | CMD_IDLE = 'IDLE'
|
---|
48 | CMD_WAIT = 'WAIT'
|
---|
49 | CMD_EXEC = 'EXEC'
|
---|
50 | CMD_ABORT = 'ABORT'
|
---|
51 | CMD_REBOOT = 'REBOOT'
|
---|
52 | CMD_UPGRADE = 'UPGRADE'
|
---|
53 | CMD_UPGRADE_AND_REBOOT = 'UPGRADE_AND_REBOOT'
|
---|
54 | CMD_SPECIAL = 'SPECIAL'
|
---|
55 | ## @ }
|
---|
56 |
|
---|
57 | ## @name SIGNON parameter names.
|
---|
58 | # @{
|
---|
59 | ## The TestBox ID.
|
---|
60 | SIGNON_PARAM_ID = 'TESTBOX_ID'
|
---|
61 | ## The TestBox name.
|
---|
62 | SIGNON_PARAM_NAME = 'TESTBOX_NAME'
|
---|
63 | ## @}
|
---|
64 |
|
---|
65 |
|
---|
66 | ## @name EXEC parameter names
|
---|
67 | # @{
|
---|
68 | ## The test set id, used for reporting results.
|
---|
69 | EXEC_PARAM_RESULT_ID = 'TEST_SET_ID'
|
---|
70 | ## The file to download/copy and unpack into TESTBOX_SCRIPT.
|
---|
71 | EXEC_PARAM_SCRIPT_ZIPS = 'SCRIPT_ZIPS'
|
---|
72 | ## The testcase invocation command line (bourne shell style).
|
---|
73 | EXEC_PARAM_SCRIPT_CMD_LINE = 'SCRIPT_CMD_LINE'
|
---|
74 | ## The testcase timeout in seconds.
|
---|
75 | EXEC_PARAM_TIMEOUT = 'TIMEOUT'
|
---|
76 | ## @}
|
---|
77 |
|
---|
78 | ## @name UPGRADE and @name UPGRADE_AND_REBOOT parameter names.
|
---|
79 | # @{
|
---|
80 | ## A URL for downloading new version of Test Box Script archive
|
---|
81 | UPGRADE_PARAM_URL = 'DOWNLOAD_URL'
|
---|
82 | ## @}
|
---|
83 |
|
---|