Added samples for compliance testing with terraform-compliance

This commit is contained in:
Andreas Heumaier
2020-06-11 10:57:02 +02:00
committed by Julien Corioland
parent 3328af0982
commit a935d8bf5e
9 changed files with 234 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Feature: Test tagging compliance
Scenario: Ensure all resources have tags
Given I have resource that supports tags defined
Then it must contain tags
And its value must not be null
Scenario Outline: Ensure that specific tags are defined
Given I have resource that supports tags defined
When it has tags
Then it must contain <tags>
And its value must match the "<value>" regex
Examples:
| tags | value |
| Creator | .+ |
| Application | .+ |
| Role | .+ |
| Environment | ^(prod\|uat\|dev)$ |