Terraform module that will validate that a specified items is within the list of valid items
Manual testing:
# Replace "xxx" with an actual AWS profile, then execute the integration tests.
export AWS_PROFILE=xxx
make terraform/pytest PYTEST_ARGS="-v --nomock"
For automated testing, PYTEST_ARGS is optional and no profile is needed:
make mockstack/up
make terraform/pytest PYTEST_ARGS="-v"
make mockstack/clean
No requirements.
Name | Version |
---|---|
null | n/a |
Name | Type |
---|
Name | Description | Type | Default | Required |
---|---|---|---|---|
item | Name of item to validate | string |
n/a | yes |
name | Name of the validation test | string |
n/a | yes |
valid_items | List of valid items to validate against | list(string) |
n/a | yes |
Name | Description |
---|---|
is_valid | Whether the item is valid or not |
item | The item |
valid_items | The list of valid items |
validation_name | The name of this validation |