Skip to content

BDD Reference

Policies are Gherkin features. Each Scenario follows the same flow as terraform-compliance:

Scenario flow

Given   → set the entity stash (jobs, includes, settings, …)
When    → filter the stash (skip scenario if nothing matches)
Then    → assert on every entity left in the stash (fail on violation)
And     → continue the previous step type

Topics

Example policies live under Examples.