Location of target host
'ERROR config.py : OPENDSDIR variable not defined'
'ERROR config.py : TMPDIR variable not defined'
'ERROR config.py : JAVA_HOME variable not defined'
{
'location' : STAXServiceMachine,
'string2grep' : 'NEED_VALUE',
'expect2Find' : FALSE,
'caseSensitive' : FALSE,
'file' : '%s/config.py' % TESTS_DIR,
'fileFd' : NO_FILE
}
{
'location' : STAXServiceMachine,
'string2grep' : 'NEED_VALUE',
'expect2Find' : FALSE,
'caseSensitive' : FALSE,
'file' : configurationFile,
'fileFd' : NO_FILE
}
'preamble before running the system test'
instances list
clients list
'=================== PREAMBLE ========================='
{ 'location' : instance.getHost(),
'foldername' : LOG_DIR,
'fileFd' : NO_FILE
}
{ 'location' : instance.getHost(),
'foldername' : LOG_TMP_DIR,
'fileFd' : NO_FILE
}
{ 'location' : instance.getHost(),
'foldername' : LOG_XML_TMP_DIR,
'fileFd' : NO_FILE
}
{ 'location' : instance.getHost(),
'foldername' : LOCAL_TESTS_DIR,
'fileFd' : NO_FILE
}
{
'remoteHost' : fullHostName,
'fromDirectory' : '%s/phases/shared/java' % TESTS_DIR,
'toDirectory' : '%s/phases/shared/java' % LOCAL_TESTS_DIR,
'fileFd' : NO_FILE
}
{ 'instance' : instance }
{ 'location' : client.getHost(),
'foldername' : LOG_DIR,
'fileFd' : NO_FILE
}
{ 'location' : client.getHost(),
'foldername' : LOG_TMP_DIR,
'fileFd' : NO_FILE
}
{ 'location' : client.getHost(),
'foldername' : LOG_XML_TMP_DIR,
'fileFd' : NO_FILE
}
{ 'location' : client.getHost(),
'foldername' : '%s/clients' % LOCAL_TESTS_DIR,
'fileFd' : NO_FILE
}
{
'remoteHost' : fullHostName,
'fromDirectory' : '%s/clients' % TESTS_DIR,
'toDirectory' : '%s/clients' % LOCAL_TESTS_DIR,
'fileFd' : NO_FILE
}
{
'location' : STAXServiceMachine,
'fileName' : '%s/scenario/%s/clients' % \
(TESTS_DIR,DIR_NAME),
}
{
'remoteHost' : fullHostName,
'fromDirectory' : '%s/scenario/%s/clients' % \
(TESTS_DIR,DIR_NAME),
'toDirectory' : '%s/scenario/%s/clients' % \
(LOCAL_TESTS_DIR,DIR_NAME),
'fileFd' : NO_FILE
}
'== Found %s Error(s) during this phase' % (ERR_NUM[0])
'postamble after running the system test'
instances list
clients list
'=================== POSTAMBLE ========================='
{ 'location' : STAXServiceMachine,
'foldername' : '%s/%s' % (LOG_DIR,instance.getName()) ,
'fileFd' : NO_FILE
}
{ 'location' : instance.getHost(),
'dsPath' : instance.getInstallDir(),
'dsInstanceHost' : instance.getHost(),
'dsInstancePort' : instance.getLDAPPort(),
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'dsScope' : 'sub',
'dsBaseDN' : 'cn=monitor',
'dsFilter' : 'objectclass=*',
'expectedRC' : 0,
'fileFd' : NO_FILE,
'outputFile' : outputFile
}
{
'srcFile' : '%s/cnMonitor.txt' % LOG_DIR,
'destFile' : '%s/%s/cnMonitor.txt'%(LOG_DIR,instance.getName()),
'location' : instance.getHost(),
'remoteHost' : STAXServiceMachine,
'fileFd' : NO_FILE
}
{
'srcFile' : '%s/config/config.ldif'%(instance.getInstallDir()),
'destFile' : '%s/%s/config.ldif' % (LOG_DIR,instance.getName()),
'location' : instance.getHost(),
'remoteHost' : STAXServiceMachine,
'fileFd' : NO_FILE
}
{
'sourceHost' : instance.getHost(),
'directory' : '%s/tmp' % LOG_DIR,
'hosts' : hosts
}
{
'sourceHost' : client.getHost(),
'directory' : '%s/tmp' % LOG_DIR,
'hosts' : hosts
}
{
'srcFile' : '%s/report/result.xsl' % (TESTS_DIR),
'destFile' : '%s/result.xsl' % LOG_DIR,
'remoteHost' : STAXServiceMachine,
'fileFd' : NO_FILE
}
{
'srcFile' : '%s/report/result.css' % (TESTS_DIR),
'destFile' : '%s/result.css' % LOG_DIR,
'remoteHost' : STAXServiceMachine,
'fileFd' : NO_FILE
}
'***************************************************'
'****** RUN IS FINISHED '
'****** Results stored on %s ' % STAXServiceMachine
'****** %s' % LOG_DIR
'****** Found %s ERROR(S)' % ERR_NUM_TOTAL
'***************************************************'
'copy remote directory to STAXServiceMachine and delete it'
remote source host name where directory will be get
directory path
if sourceHost is in the hosts list, then do nothing
add the sourceHost in the list if operations are done
{
'location' : sourceHost,
'fromDirectory' : directory,
'toDirectory' : directory,
'remoteHost' : STAXServiceMachine,
'fileFd' : NO_FILE
}
hosts