terraform_validate icon indicating copy to clipboard operation
terraform_validate copied to clipboard

Assertion descriptions

Open elmundio87 opened this issue 8 years ago • 0 comments

To help speed up fixing of terraform configurations that fail tests, I propose that all methods that raise AssertionErrors should have an optional parameter where you can put a description of the test.

eg.

validator.resources('foo').property('bar').should_match_regex('^([a-z0-9]|\_)*$', 'All characters should be lowercase or an underscore')

Particularly for those that don't speak regex as a first language!

elmundio87 avatar Jan 06 '17 08:01 elmundio87