cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# -*- coding: utf-8 -*-
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# $Id$
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync"""
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTest Manager Configuration.
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
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncimport os;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Test Manager version string.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksVersion = 'v0.0.2';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Test Manager revision string.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksRevision = ('$Revision$')[11:-2];
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enable VBox specific stuff.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfVBoxSpecific = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name Used by the TMDatabaseConnection class.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksDatabaseName = 'testmanager';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksDatabaseAddress = None;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksDatabasePort = None;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksDatabaseUser = 'postgres';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksDatabasePassword = '';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name User handling.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Whether login names are case insensitive (True) or case sensitive (False).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @note Implemented by inserting lower case names into DB and lower case
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## bind variables in WHERE clauses.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfLoginNameCaseInsensitive = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name File locations
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The TestManager directory.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTestManagerDir = os.path.dirname(os.path.abspath(__file__));
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The Validation Kit directory.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksValidationKitDir = os.path.dirname(g_ksTestManagerDir);
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The TestManager htdoc directory.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTmHtDocDir = os.path.join(g_ksTestManagerDir, 'htdocs');
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The TestManager download directory (under htdoc somewhere), for validationkit zips.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTmDownloadDir = os.path.join(g_ksTmHtDocDir, 'download');
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The base URL relative path of the TM download directory (g_ksTmDownloadDir).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTmDownloadBaseUrlRel = 'htdocs/downloads';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The root of the file area (referred to as TM_FILE_DIR in database docs).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksFileAreaRootDir = '/var/tmp/testmanager'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The root of the file area with the zip files (best put on a big storage server).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksZipFileAreaRootDir = '/var/tmp/testmanager2'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## URL prefix for trac log viewer.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTracLogUrlPrefix = 'https://linserv.de.oracle.com/vbox/log/'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## URL prefix for trac log viewer.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTracChangsetUrlFmt = 'https://linserv.de.oracle.com/%(sRepository)s/changeset/%(iRevision)s'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## URL prefix for unprefixed build logs.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksBuildLogUrlPrefix = ''
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## URL prefix for unprefixed build binaries.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksBuildBinUrlPrefix = '/builds/'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The local path prefix for unprefixed build binaries. (Host file system, not web server.)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksBuildBinRootDir = '/mnt/builds/'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## File on the build binary share that can be used to check that it's mounted.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksBuildBinRootFile = 'builds.txt'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The time to wait for a gang to gather (in seconds).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcSecGangGathering = 600;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max time allowed to spend looking for a new task (in seconds).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcSecMaxNewTask = 60;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name Test result limits.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## In general, we will fail the test when reached and stop accepting further results.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of test results per test set.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestResultsPerTS = 4096;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of test results (children) per test result.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestResultsPerTR = 512;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of test result values per test set.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestValuesPerTS = 4096;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of test result values per test result.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestValuesPerTR = 256;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of test result message per test result.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestMsgsPerTR = 4;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max test result nesting depth.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxTestResultDepth = 8;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max length of a test result name.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcchMaxTestResultName = 64;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max length of a test result value name.
3f276b3ec06ea1b90f24f01ed3df2d3a29fcc085vboxsyncg_kcchMaxTestValueName = 56;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max length of a test result message.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcchMaxTestMsg = 128;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max size of the main log file.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMbMaxMainLog = 32;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max size of an uploaded file (individual).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMbMaxUploadSingle = 16;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max size of all uploaded file.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMbMaxUploadTotal = 128;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## The max number of files that can be uploaded.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kcMaxUploads = 256;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @name Debug Features
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @{
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables extra DB exception information.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfDebugDbXcpt = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Where to write the glue debug.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# None indicates apache error log, string indicates a file.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#g_ksSrcGlueDebugLogDst = '/tmp/testmanager-srv-glue.log';
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksSrcGlueDebugLogDst = None;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Whether to enable CGI trace back in the server glue.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfSrvGlueCgiTb = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables glue debug output.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfSrvGlueDebug = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Timestamp the glue debug output.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfSrvGlueDebugTS = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables task scheduler debug output to g_ksSrcGlueDebugLogDst.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfSrvGlueDebugScheduler = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables the SQL trace back.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiSqlTrace = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables the explain in the SQL trace back.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiSqlTraceExplain = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Whether the postgresql version supports the TIMING option on EXPLAIN (>= 9.2).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiSqlTraceExplainTiming = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Display time spent processing the page.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiProcessedIn = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables WebUI debug output.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiDebug = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables WebUI SQL debug output print() calls (requires g_kfWebUiDebug).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiSqlDebug = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Enables the debug panel at the bottom of the page.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfWebUiDebugPanel = True;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Profile cgi/admin.py.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfProfileAdmin = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## Profile cgi/index.py.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_kfProfileIndex = False;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## When not None,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_ksTestBoxDispXpctLog = '/tmp/testmanager-testboxdisp-xcpt.log'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @}
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync