conftest verify does not consider exceptions #496
Unanswered
cmorinupgrade
asked this question in
Conftest
Replies: 1 comment 1 reply
-
I'm not sure, but it seems only
The docs could certainly be improved to explain that, and if exceptions don't apply to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have the following policy in a file called
rbac.rego
:and the following exception (in a separate file called
rbac_exception.rego
, alongsiderbac.rego
):We recently had to add an exception and I would like to write a unit test about that to validate that the exception works as expected.
Here's the test in question:
Using the following command does not seem to take the exception into consideration (always fail):
Any help would be much appreciated.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions