forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Raygun to the policy-testing ecosystem (open-policy-agent#6712)
Signed-off-by: John Brothers <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.