Skip to main content
raygun Logo

raygun

Black-box Automated Testing for Rego

A command-line tool for "black-box" automated testing of Rego. Raygun uses OPA as a client, instead of as the test driver. You create YAML test suites that specify the location of the bundle, the policy path, the input JSON and the expected response, and Raygun starts up an OPA process with that bundle, POSTs the input JSON to OPA, checks substrings of the response against your expectations and reports on the results. Easy to integrate into existing build chains. Keeps the tests separate from the policy source code.

Blogs:
Code:
Tutorials:
Category: tooling
Layer: shell