Module test_ospl :: Class TestNode
[hide private]
[frames] | no frames]

Class TestNode

source code

A machine environment that a part of a TestScenario runs on.

Each requires a STAF daemon.

Instance Methods [hide private]
 
__init__(self, host_name, test_root, ospl_home=None, staf_port=6500, staf_url='')
Constructor for a TestNode.
source code
 
file_sep(self)
Returns the file path separator for this TestNode.
source code
 
get_host_name(self)
Returns the Node hostname or IP or whatever
source code
 
get_ospl_env(self)
Return the list of environment variable values applicable to the configured OSPL_HOME (if any) within this particular TestRun on this TestNode
source code
 
get_ospl_home(self)
Get the value of OSPL_HOME on this TestNode within this particular TestRun
source code
 
get_ospl_uri(self)
Convenience accessor for OSPL_URI env prop on this box.
source code
 
get_staf_url(self)
Returns the url that the STAF daemon is running at on this Node
source code
 
get_test_root(self)
Get the location that the built test checkout resides at on this machine for this run
source code
 
is_windows(self)
Returns true if this TestNode is a windows box
source code
 
os_name(self)
Returns a string describing the OS on this TestNode
source code
 
path_sep(self)
Returns the path sepator on this TestNode.
source code
Method Details [hide private]

__init__(self, host_name, test_root, ospl_home=None, staf_port=6500, staf_url='')
(Constructor)

source code 

Constructor for a TestNode. Required are the/a DNS name of the host, the root at which a source checkout of OSPL exists. Optionally the value of OSPL_HOME that is to be tested or None if you are taking responsibility for configuring the STAF daemon environment yourself & the location of the STAF daemon if not at the default port

file_sep(self)

source code 

Returns the file path separator for this TestNode. i.e. / or

get_ospl_uri(self)

source code 

Convenience accessor for OSPL_URI env prop on this box. We need this to make sure we can ospl list only the default domain to find out if it is running or not

path_sep(self)

source code 

Returns the path sepator on this TestNode. i.e. : or ;