Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Raygun to the policy-testing ecosystem #6712

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/website/content/integrations/raygun.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
link: https://paclabs.io
title: PACLabs
---
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.