cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# -*- coding: utf-8 -*-
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# $Id$
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync"""
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTest Manager Responses to the TestBox Script.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync"""
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync__copyright__ = \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync"""
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCopyright (C) 2012-2014 Oracle Corporation
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThis file is part of VirtualBox Open Source Edition (OSE), as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncavailable from http://www.virtualbox.org. This file is free software;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncyou can redistribute it and/or modify it under the terms of the GNU
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncGeneral Public License (GPL) as published by the Free Software
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFoundation, in version 2 as it comes in the "COPYING" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncVirtualBox OSE distribution. VirtualBox OSE is distributed in the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynchope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncThe contents of this file may alternatively be used under the terms
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncof the Common Development and Distribution License Version 1.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync(CDDL) only, as it comes in the "COPYING.CDDL" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncVirtualBox OSE distribution, in which case the provisions of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCDDL are applicable instead of those of the GPL.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncYou may elect to license modified versions of this file under the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncterms and conditions of either the GPL or the CDDL or both.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync"""
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync__version__ = "$Revision$"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## All test manager actions responses to the testbox include a RESULT field.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncALL_PARAM_RESULT = 'RESULT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name Statuses (returned in ALL_PARAM_RESULT).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Acknowledgement.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSTATUS_ACK = 'ACK'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Negative acknowledgement.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSTATUS_NACK = 'NACK'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The testbox is dead, i.e. it no longer exists with the test manager.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @note Not used by the SIGNON action, but all the rest uses it.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSTATUS_DEAD = 'DEAD'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name Command names (returned in ALL_PARAM_RESULT).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_IDLE = 'IDLE'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_WAIT = 'WAIT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_EXEC = 'EXEC'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_ABORT = 'ABORT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_REBOOT = 'REBOOT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_UPGRADE = 'UPGRADE'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_UPGRADE_AND_REBOOT = 'UPGRADE_AND_REBOOT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCMD_SPECIAL = 'SPECIAL'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @ }
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name SIGNON parameter names.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The TestBox ID.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSIGNON_PARAM_ID = 'TESTBOX_ID'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The TestBox name.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSIGNON_PARAM_NAME = 'TESTBOX_NAME'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name EXEC parameter names
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The test set id, used for reporting results.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncEXEC_PARAM_RESULT_ID = 'TEST_SET_ID'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The file to download/copy and unpack into TESTBOX_SCRIPT.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncEXEC_PARAM_SCRIPT_ZIPS = 'SCRIPT_ZIPS'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The testcase invocation command line (bourne shell style).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncEXEC_PARAM_SCRIPT_CMD_LINE = 'SCRIPT_CMD_LINE'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The testcase timeout in seconds.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncEXEC_PARAM_TIMEOUT = 'TIMEOUT'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name UPGRADE and @name UPGRADE_AND_REBOOT parameter names.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## A URL for downloading new version of Test Box Script archive
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncUPGRADE_PARAM_URL = 'DOWNLOAD_URL'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync