RBACAsserter is a helper for asserting that the correct RBAC checks are performed. This struct is tied to a given user, and only authorizes calls for this user are checked.
| 30 | // performed. This struct is tied to a given user, and only authorizes calls |
| 31 | // for this user are checked. |
| 32 | type RBACAsserter struct { |
| 33 | Subject rbac.Subject |
| 34 | |
| 35 | Recorder *RecordingAuthorizer |
| 36 | } |
| 37 | |
| 38 | // AssertRBAC returns an RBACAsserter for the given user. This asserter will |
| 39 | // allow asserting that the correct RBAC checks are performed for the given user. |
nothing calls this directly
no outgoing calls
no test coverage detected