'Could not create the topology. Bailing out.'
'Could not start at least one server in the topology. Bailing out.'
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
'dsFilter' : 'objectclass=*' }
'That is the right setup being called here'
{ 'functionName' : 'createTopology' ,
'functionMessage' : 'Create DS topology as described in config.py',
'functionException' : 'Topology.CreationException' ,
'functionArguments' : { 'initialiseInstance' : True }
}
{ 'functionName' : 'StartDSWithScript' ,
'functionMessage' : 'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT) ,
'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
}
{ 'functionName' : 'isAlive' ,
'functionMessage' : 'Checking if the server is available' ,
'functionException' : 'Topology.StartException' ,
'functionArguments' : { 'noOfLoops' : 5 ,
'noOfMilliSeconds' : 2000 }
}
{ 'functionName' : 'StopDsWithScript' ,
'functionMessage' : 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT),
'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME ,
'dsHost' : DIRECTORY_INSTANCE_HOST ,
'dsPort' : DIRECTORY_INSTANCE_PORT ,
'dsBindDN' : DIRECTORY_INSTANCE_DN ,
'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
}
{ 'functionName' : 'removeTopology',
'functionMessage' : 'Remove DS topology created for the Test Suite'
}
Name of the function to run
Arguments to be passed on to the called function.
This can be a map or a list of arguments, whatever the called function
expects will be carried on here.
. for a map, pass the arguments like this:
{ 'argumentA' : 'argumentAvalue' ,
'argumentB' : 1 ,
...
}
. for a list, pass the arguments like this:
[ 'argumentAvalue, 1, ... ]
The expected return code of the function to run.
This is then passed onto the checkRC function.
It is also used to throw an exception if the argument
functionException is provided and set the test case status if the
argument functionSetsTCStatus is provided
The exception to throw if the return code differs from the expected
RC. The exception is appended to STAXException.
An optional message to display before running the function
Whether the function to run sets the testcase status or not.
If this is set, the test case status is set according to whether
or not the function meets the expected return code.
True or False should be used for this argument.
'%s' % functionMessage
'runFunction: %s: called with parameters [%s]' % (functionName,functionArguments)
functionArguments
'runFunction: %s: returned [%s]' % (functionName,RC)
{ 'returncode' : RC ,
'result' : STAXResult,
'expected' : expectedRC
}
functionRC