OPA Ecosystem / Policy Testing

Policy Testing

Styra Declarative Authorization Service

Policy as Code Control Plane by Styra

DAS supports the running of tests alongside Rego policy in its UI. Read documentation about testing Rego policies in DAS.
View Details

Regal

The Linter of Rego Language by Styra

Regal is a useful step to use when testing Rego policies to ensure code is correct and free of common errors. See the README to get started.
View Regal Details

Conftest

Rego policy for configuration files

Conftest supports unit testing of policy and has a number of extra language features for working with configuration files. The functionality is documented here.
View Conftest Details

Styra Enterprise OPA

Styra

Enterprise OPA’s Live Impact Analysis (LIA) feature allows you to test changes to Rego policy on running instances.
View Styra Enterprise OPA Details

raygun

Black-box Automated Testing for Rego by PACLabs

Raygun makes it easier to test Rego code in a “real-world” facsimile.
View raygun Details

rego-test-assertions

Helper functions for unit testing Rego by Anders Eknert

The rego-test-assertions library contains various assertion functions, which will print the expected result vs. the outcome to the console on failure.
View rego-test-assertions Details

Integrations are ordered by the amount of linked content.

Do you have an OPA-based project or integration to share? Follow these instructions to get it listed or go to the #ecosystem channel in the OPA Slack if you have any questions.