Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xchapter7x authored Nov 3, 2019
1 parent 9ff316b commit 3387007
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ your policy failed
## Notes on Rego
Rego is a Policy Language for the Open Policy Agent eco system. The gist is that everything between the `{}` is a `rule`. Everything between `{}` should evaluate to `true`. Assignments yield true, and if any statement in the `{}` block is `false` then the entire rule will return `false` and therfore fail our test case.
Rego is a Policy Language for the Open Policy Agent eco system. We use rego here as our testing DSL. Any rego rule which is an `assert` or `expect` will get executed and must evaluated to true. The gist is that everything between the `{}` is a `rule`. Everything between `{}` should evaluate to `true`. Assignments yield true, and if any statement in the `{}` block is `false` then the entire rule will return `false` and therfore fail our test case.
For more information you can try: https://www.openpolicyagent.org/docs/latest/#rego
Or for a Online playground: https://play.openpolicyagent.org/
Or
for a Online playground: https://play.openpolicyagent.org/
Expand Down

0 comments on commit 3387007

Please sign in to comment.