Skip to content

Commit

Permalink
Adding Raygun to the policy-testing ecosystem (#6712)
Browse files Browse the repository at this point in the history
Signed-off-by: John Brothers <johnbr@gmail.com>
  • Loading branch information
johndbro1 committed Apr 24, 2024
1 parent b58e87f commit f2011b1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/website/content/integrations/raygun.md
@@ -0,0 +1,30 @@
---
title: raygun
subtitle: Black-box Automated Testing for Rego
labels:
category: tooling
layer: shell
inventors:
- paclabsnet
code:
- https://github.com/paclabsnet/raygun
tutorials:
- https://github.com/paclabsnet/raygun/blob/main/README.md
blogs:
- https://paclabs.substack.com/p/raygun-automated-testing-for-rego
docs_features:
policy-testing:
note: |
[Raygun](https://github.com/paclabsnet/raygun)
makes it easier to test Rego code in a "real-world" facsimile.
---

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.

4 changes: 4 additions & 0 deletions docs/website/content/organizations/paclabsnet.md
@@ -0,0 +1,4 @@
---
link: https://paclabs.io
title: PACLabs
---
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2011b1

Please sign in to comment.