terraformtestinglib.utils package

Submodules

terraformtestinglib.utils.errortypes module

Main code for errortypes.

class terraformtestinglib.utils.errortypes.ConfigurationError(resource_type, entity, field, regex, value, original_value)

Bases: tuple

entity

Alias for field number 1

field

Alias for field number 2

original_value

Alias for field number 5

regex

Alias for field number 3

resource_type

Alias for field number 0

value

Alias for field number 4

class terraformtestinglib.utils.errortypes.FilenameError(filename, resource, target)[source]

Bases: object

Models the Filename error and provides a nice printed version.

class terraformtestinglib.utils.errortypes.ResourceError(filename, resource, entity, field, regex, value, original_value)[source]

Bases: object

Models the Resource error and provides a nice printed version.

class terraformtestinglib.utils.errortypes.RuleError(resource_type, entity, field, regex, value, original_value)

Bases: tuple

entity

Alias for field number 1

field

Alias for field number 2

original_value

Alias for field number 5

regex

Alias for field number 3

resource_type

Alias for field number 0

value

Alias for field number 4

terraformtestinglib.utils.utils module

Main code for utils.

class terraformtestinglib.utils.utils.RecursiveDictionary[source]

Bases: dict

Implements recursively updating dictionary.

RecursiveDictionary provides the methods update and iter_rec_update that can be used to update member dictionaries rather than overwriting them.

iter_rec_update(iterator)[source]

Updates recursively.

update(other, **third)[source]

Implements the recursion.

Recursively update the dictionary with the contents of other and third like dict.update() does - but don’t overwrite sub-dictionaries.

Module contents

terraformtestinglib.utils package.

Import all parts from terraformtestinglib.utils here