Search in sources :

Example 11 with IRoleManager

use of org.apache.cassandra.auth.IRoleManager in project cassandra by apache.

the class InvalidateRolesCacheTest method setup.

@BeforeClass
public static void setup() throws Exception {
    CQLTester.setUpClass();
    CQLTester.requireAuthentication();
    IRoleManager roleManager = DatabaseDescriptor.getRoleManager();
    roleManager.createRole(AuthenticatedUser.SYSTEM_USER, ROLE_A, AuthTestUtils.getLoginRoleOptions());
    roleManager.createRole(AuthenticatedUser.SYSTEM_USER, ROLE_B, AuthTestUtils.getLoginRoleOptions());
    AuthCacheService.initializeAndRegisterCaches();
    startJMXServer();
}
Also used : IRoleManager(org.apache.cassandra.auth.IRoleManager) BeforeClass(org.junit.BeforeClass)

Aggregations

IRoleManager (org.apache.cassandra.auth.IRoleManager)11 BeforeClass (org.junit.BeforeClass)10 IAuthorizer (org.apache.cassandra.auth.IAuthorizer)4 Permission (org.apache.cassandra.auth.Permission)4 IResource (org.apache.cassandra.auth.IResource)3 AuthTestUtils (org.apache.cassandra.auth.AuthTestUtils)2 PlainTextAuthProvider (com.datastax.driver.core.PlainTextAuthProvider)1 AuthSchemaChangeListener (org.apache.cassandra.auth.AuthSchemaChangeListener)1 INetworkAuthorizer (org.apache.cassandra.auth.INetworkAuthorizer)1 JMXResource (org.apache.cassandra.auth.JMXResource)1 PasswordAuthenticator (org.apache.cassandra.auth.PasswordAuthenticator)1