StyraInc / opa-aws-cloudformation-hook

AWS Cloudformation Hook for OPA-powered infrastructure policy enforcement
Apache License 2.0
35 stars 5 forks source link

Run integration tests as part of the build #19

Closed anderseknert closed 2 years ago

anderseknert commented 2 years ago

It would be nice if we could run the integration tests as part of the build as well. These tests would need to:

  1. Start OPA pointed at the policy directory.
  2. Run ./test-templates.py (which we'll need to modify to exit with an error code on test failures).
  3. Stop OPA (optional I guess for GH actions, but nice to be able to run this locally as well).