labtest.provider.aws package

Submodules

labtest.provider.aws.rds module

labtest.provider.aws.repository module

labtest.provider.aws.secrets module

class labtest.provider.aws.secrets.KMSSecret(config)[source]

Bases: labtest.provider.base_secret.BaseSecret

decrypt(ciphertext)[source]

Decrypt the ciphertext and return the result

Parameters

ciphertext – The encrypted secret to decrypt

Returns

The plaintext

default_config = None
encrypt(plaintext)[source]

Encrypt the plaintext and return the result

Parameters

plaintext – The text to encrypt

Returns

The encrypted secret

labtest.provider.aws.state module

exception labtest.provider.aws.state.NotInCacheException[source]

Bases: exceptions.LookupError

class labtest.provider.aws.state.S3State(config)[source]

Bases: labtest.provider.base_state.BaseState

Implements retrieval of state information from S3 and optionally a local cache

default_config = {'cache': True, 'cache_path': '/testing/state/'}
get(key)[source]

Get the value of key from bucket navigating the hierarchy of the key path

Parameters

key – The key, as a / delimited path.

Returns

The value or None

Module contents