avocado_i2n.intertest_setup module

Utility to manage all needed virtual machines.

SUMMARY

Copyright: Intra2net AG

CONTENTS

This utility can be used by any host control to manage one or more virtual machines. It in turn uses some other host utilities.

Use the tag argument to add more details to generated test variant name in case you are running any of the manual step functions here more than once.

IMPORTANT: If you don’t want to perform the given setup with all virtual machines, defined by your parameters then just overwrite the parameter vms as a space separated list of the selected virtual machine names. The setup then is going to be performed only on those machines and not on all. Example is ‘vms = vm1 vm2 vm3n’ to create only vm1 and vm3 add to the overwrite string ‘vms = vm1 vm3n’ in order to overwrite the vms parameter. Of course you can do this with any parameter to manage other aspects of the virtual environment setup process.

INTERFACE

avocado_i2n.intertest_setup.noop(config: dict[str, Any], tag: str = '') None[source]

Empty setup step to invoke plugin without performing anything.

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

avocado_i2n.intertest_setup.unittest(config: dict[str, Any], tag: str = '') None[source]

Perform self testing for sanity and test result validation.

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

avocado_i2n.intertest_setup.update(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.run(config: dict[str, Any], tag: str = '') int[source]

Run a set of tests without any automated setup.

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

This is equivalent to but more powerful than the runner plugin.

avocado_i2n.intertest_setup.list(config: dict[str, Any], tag: str = '') None[source]

List a set of tests from the command line.

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

This is equivalent to but more powerful than the loader plugin.

avocado_i2n.intertest_setup.start(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.stop(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.boot(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.download(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.control(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.upload(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.shutdown(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.check(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.pop(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.push(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.get(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.set(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.unset(config: dict[str, Any], tag: str = '') int[source]
avocado_i2n.intertest_setup.collect(config: dict[str, Any], tag: str = '') None[source]

Get a new test object (vm, root state) from a pool.

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

..todo:: With later refactoring of the root check implicitly getting a

pool rool state, we can refine the parameters here.

avocado_i2n.intertest_setup.create(config: dict[str, Any], tag: str = '') None[source]

Create a new test object (vm, root state).

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run

avocado_i2n.intertest_setup.clean(config: dict[str, Any], tag: str = '') None[source]

Remove a test object (vm, root state).

Parameters:
  • config – command line arguments and run configuration

  • tag – extra name identifier for the test to be run