Skip to content

Commit

Permalink
Update 04_testing-policies.adoc
Browse files Browse the repository at this point in the history
Minor typo fix.

Signed-off-by: Peter Franzen <peter.franzen@gmail.com>
  • Loading branch information
peterfranzen authored and charithe committed Mar 1, 2023
1 parent 6a40073 commit 39c126f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/tutorial/04_testing-policies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Cerbos allows you to write xref:policies:compile.adoc[tests for policies] and ru

A test suite defines a number of resources and principals and the expected result of actions for any combination of them.

To define a test suite, create a `tests` folder alongside your policy folder. In this folder, any number of tests can be fined as YAML but the file must end with `_test`.
To define a test suite, create a `tests` folder alongside your policy folder. In this folder, any number of tests can be defined as YAML but the file must end with `_test`.

As an example, the `contact` policy states that a `user` can create, read and update a contact, but only an `admin` can delete them - therefore you can create a test suite for this like the below:

Expand Down

0 comments on commit 39c126f

Please sign in to comment.