hashicorp / sentinel-sdk

This SDK allows developers to extend Sentinel to source external information for use in their policies.
Mozilla Public License 2.0
51 stars 13 forks source link

Add helpers for loading TestImportCase structures #39

Closed ryanuber closed 4 years ago

ryanuber commented 4 years ago

Adds helper functions to load TestImportCase structures from Sentinel policy files using simple pragmas. The idea is to get out of the habit of infinitely adding to our table tests, especially when we start having more complex and multi-line policies. The process of adding a test simply becomes dropping a new policy file into a directory.