Package ganeti :: Package rapi :: Module testutils :: Class InputTestClient
[hide private]
[frames] | no frames]

Class InputTestClient

source code


Test version of RAPI client.

Instances of this class can be used to test input arguments for RAPI client calls. See rapi.client.GanetiRapiClient for available methods and their arguments. Functions can return NotImplemented if all arguments are acceptable, but a LUXI request would be necessary to provide an actual return value. In case of an error, VerificationError is raised.


See Also: An example on how to use this class can be found in doc/examples/rapi_testutils.py

Instance Methods [hide private]
 
__init__(self)
Initializes this class.
source code
 
_GetLuxiCalls(self)
Returns the names of all called LUXI client functions.
source code
 
__getattr__(self, name)
Finds method by name.
source code

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)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

__getattr__(self, name)
(Qualification operator)

source code 

Finds method by name.

The method is wrapped using _TestWrapper to produce the actual test result.