avocado_i2n.cartgraph.object module

SUMMARY

Utility for the main test suite substructures like test objects.

Copyright: Intra2net AG

INTERFACE

class avocado_i2n.cartgraph.object.TestObject(suffix, config)[source]

Bases: object

A wrapper for a test object used in one or more test nodes.

params

Parameters (cache) property.

final_restr

Final restriction to make the object parsing variant unique.

long_suffix

Sufficiently unique suffix to identify a variantless test object.

id

Unique ID to identify a test object.

__init__(suffix, config)[source]

Construct a test object (vm) for any test nodes (tests).

Parameters:
  • name (str) – name of the test object
  • config (param.Reparsable) – variant configuration for the test object
__repr__()[source]

Return repr(self).

is_permanent()[source]

If the test object is permanent, it can only be created manually (possibly through the use of manual setup steps).

On states on permanent test object are treated differently than on states on normal test object since they are preserved through test runs and even host shutdowns.

object_typed_params(params)[source]

Return object and type filtered parameters using the current object type.

Parameters:params (param_utils.Params) – whether to show generated parameter dictionaries
regenerate_params(verbose=False)[source]

Regenerate all parameters from the current reparsable config.

Parameters:verbose (bool) – whether to show generated parameter dictionaries
class avocado_i2n.cartgraph.object.NetObject(name, config)[source]

Bases: avocado_i2n.cartgraph.object.TestObject

A Net wrapper for a test object used in one or more test nodes.

__init__(name, config)[source]

Construct a test object (vm) for any test nodes (tests).

All arguments are inherited from the base class.

class avocado_i2n.cartgraph.object.VMObject(name, config)[source]

Bases: avocado_i2n.cartgraph.object.TestObject

A VM wrapper for a test object used in one or more test nodes.

__init__(name, config)[source]

Construct a test object (vm) for any test nodes (tests).

All arguments are inherited from the base class.

class avocado_i2n.cartgraph.object.ImageObject(name, config)[source]

Bases: avocado_i2n.cartgraph.object.TestObject

An image wrapper for a test object used in one or more test nodes.

id

Sufficiently unique ID to identify a test object.

__init__(name, config)[source]

Construct a test object (vm) for any test nodes (tests).

All arguments are inherited from the base class.