AssertActor asserts in order. If the order of authz calls does not match, this will fail.
(t *testing.T, actor rbac.Subject, did ...ActionObjectPair)
| 234 | // AssertActor asserts in order. If the order of authz calls does not match, |
| 235 | // this will fail. |
| 236 | func (r *RecordingAuthorizer) AssertActor(t *testing.T, actor rbac.Subject, did ...ActionObjectPair) { |
| 237 | r.AssertActorID(t, actor.ID, did...) |
| 238 | } |
| 239 | |
| 240 | func (r *RecordingAuthorizer) AssertActorID(t *testing.T, id string, did ...ActionObjectPair) { |
| 241 | r.Lock() |