How to test policies correctly?
Hello, I am confused a tiny bit about policy testing.
As an example, right now what I do is the following:
Previously, I was doing this:
Both pass, but I am unsure as to what I should be doing... Maybe matching on the type of error is better (not found, forbidden, etc), instead of matching on any error?
As an example, right now what I do is the following:
Previously, I was doing this:
Both pass, but I am unsure as to what I should be doing... Maybe matching on the type of error is better (not found, forbidden, etc), instead of matching on any error?
