Package schrodinger :: Package test :: Package scival :: Module aggregate :: Class AggregateClient
[hide private]
[frames] | no frames]

Class AggregateClient

object --+
         |
        AggregateClient

Instance Methods [hide private]
 
__init__(self, suite_label, username=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setEnvironment(self, environment)
Set the environment used to get reports on this client
 
set_run_state(self, test, environment, state, job_id, **kwargs)
Set the state of a test job run.
 
query_run_state(self, test, **kwargs)
Query the state of a test job.
 
test_query(self, **kwargs)
Return a list of test IDs matching the keyword arguments.
 
test_add(self, username=None, **kwargs)
Add a test with attributes determined by the keyword arguments.
 
test_get_or_add(self, username=None, **kwargs)
Get the ID of an existing test matching the provided keyword attributes, or add one if it doesn't exist.
 
result_add(self, **kwargs)
Add a result with attributes determined by the keyword arguments.
 
result_query(self, **kwargs)
Query a result with attributes determined by the keyword arguments.
 
get_test_results(self, test, environment, **kwargs)
Get a list of results in the database for a test and environment.
 
get_test_states(self, test, environment, **kwargs)
Get a list of states for a test and environment.
 
get_build_states(self, build, state='R')
Get a list of running jobs for a build.
 
get_environment_states(self, environment, state)
Get a list of running jobs for an environment.
 
get_run_state_summary(self, environment)
Get a dict of all states for an environment.
 
getTestStates(self, environment)
Gets the states of all tests for environment.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, suite_label, username=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set_run_state(self, test, environment, state, job_id, **kwargs)

 

Set the state of a test job run.

Parameters:
  • test - A test representation as a dictionary (i.e. deserialized JSON).

query_run_state(self, test, **kwargs)

 

Query the state of a test job.

Parameters:
  • test - A test representation as a dictionary (i.e. deserialized JSON).

get_test_results(self, test, environment, **kwargs)

 

Get a list of results in the database for a test and environment.

Parameters:
  • test - A test representation as a dict (i.e. deserialized JSON).
  • environment - An environment representation as a dict

get_test_states(self, test, environment, **kwargs)

 

Get a list of states for a test and environment.

Parameters:
  • test - A test representation as a dict (i.e. deserialized JSON).
  • environment - An environment representation as a dict

get_build_states(self, build, state='R')

 

Get a list of running jobs for a build.

Parameters:
  • environment - An environment representation as a dict

get_environment_states(self, environment, state)

 

Get a list of running jobs for an environment.

Parameters:
  • build - A build representation as a dict (i.e. deserialized JSON).

get_run_state_summary(self, environment)

 

Get a dict of all states for an environment.

Parameters:
  • environment - An environment representation as a dict

getTestStates(self, environment)

 

Gets the states of all tests for environment. This will return a tuple of 3 lists: completed_tests, running_tests and failed_tests. Each list will be comprised of tests (JSON decoded Test objects) that belong to each state.