MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / removeRole

Method removeRole

auth/auth_test.go:1484–1488  ·  view source on GitHub ↗
(t *testing.T, auth *Authenticator, userName, roleName string, invalSeq uint64)

Source from the content-addressed store, hash-verified

1482}
1483
1484func (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

Callers 14

TestRevocationScenario1Function · 0.95
TestRevocationScenario2Function · 0.95
TestRevocationScenario3Function · 0.95
TestRevocationScenario4Function · 0.95
TestRevocationScenario5Function · 0.95
TestRevocationScenario6Function · 0.95
TestRevocationScenario7Function · 0.95
TestRevocationScenario8Function · 0.95
TestRevocationScenario9Function · 0.95
TestRevocationScenario10Function · 0.95
TestRevocationScenario11Function · 0.95
TestRevocationScenario12Function · 0.95

Calls 1

InvalidateRolesMethod · 0.80

Tested by

no test coverage detected