The argus.scenarios.base Module

class argus.scenarios.base.BaseScenario(methodName='runTest')

Scenario which sets up an instance and prepares it using a recipe.

availability_zone = None
backend = None
backend_type = None

The backend class which will be used.

introspection = None
introspection_type = None

The introspection class which will be used.

metadata = None

The metadata that will be available in the instance.

This can be anything as long as the underlying backend supports it.

classmethod prepare_instance()

Prepare the underlying instance.

classmethod prepare_recipe()

Call the prepare method of the underlying recipe

This method can be overwritten in the case the recipe’s prepare method needs special arguments passed down.

recipe = None
recipe_type = None

The recipe class which will be used.

classmethod setUpClass()

Prepare the scenario for running

This means that the backend will be instantiated and an instance will be created and prepared. After the preparation is finished, the tests can run and can introspect the instance to check what they are supposed to be checking.

classmethod tearDownClass()

Cleanup this scenario

This usually means that any resource that was created in setUpClass() needs to be destroyed here.

test_classes = None

A tuple of test classes which will be merged into the scenario.

userdata = None

The userdata that will be available in the instance

This can be anything as long as the underlying backend supports it.

class argus.scenarios.base.ScenarioMeta

Metaclass for merging test methods from a given list of test cases.

is_final()

Check current class if is final.

Checks if the class is final and if it has all the attributes set.