Added samples for compliance testing with terraform-compliance
This commit is contained in:

committed by
Julien Corioland

parent
3328af0982
commit
a935d8bf5e
19
samples/compliance-testing/src/features/tagging.feature
Normal file
19
samples/compliance-testing/src/features/tagging.feature
Normal 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)$ |
|
Reference in New Issue
Block a user