(t *testing.T, auth *Authenticator, userName, roleName string, invalSeq uint64)
| 1482 | } |
| 1483 | |
| 1484 | func (m mockComputerV2) removeRole(t *testing.T, auth *Authenticator, userName, roleName string, invalSeq uint64) { |
| 1485 | delete(m.roles[userName], roleName) |
| 1486 | err := auth.InvalidateRoles(userName, invalSeq) |
| 1487 | assert.NoError(t, err) |
| 1488 | } |
| 1489 | |
| 1490 | // Obtains principals for test scenarios |
| 1491 | // This triggers rebuild of the principals if invalid, intended to simulate an auth on _changes |
no test coverage detected