File tree 2 files changed +15
-7
lines changed
test/unit/org/apache/cassandra
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 23
23
import java .util .List ;
24
24
import java .util .Queue ;
25
25
26
+ import org .apache .cassandra .auth .CassandraAuthorizer ;
27
+ import org .apache .cassandra .auth .CassandraRoleManager ;
28
+ import org .apache .cassandra .auth .PasswordAuthenticator ;
29
+
26
30
import org .junit .AfterClass ;
27
31
import org .junit .Before ;
28
32
import org .junit .BeforeClass ;
@@ -69,11 +73,11 @@ public class AuditLoggerAuthTest
69
73
public static void setup () throws Exception
70
74
{
71
75
OverrideConfigurationLoader .override ((config ) -> {
72
- config .authenticator = new ParameterizedClass (" PasswordAuthenticator" );
73
- config .role_manager = new ParameterizedClass (" CassandraRoleManager" );
74
- config .authorizer = new ParameterizedClass (" CassandraAuthorizer" );
76
+ config .authenticator = new ParameterizedClass (PasswordAuthenticator . class . getName () );
77
+ config .role_manager = new ParameterizedClass (CassandraRoleManager . class . getName () );
78
+ config .authorizer = new ParameterizedClass (CassandraAuthorizer . class . getName () );
75
79
config .audit_logging_options .enabled = true ;
76
- config .audit_logging_options .logger = new ParameterizedClass (" InMemoryAuditLogger" , null );
80
+ config .audit_logging_options .logger = new ParameterizedClass (InMemoryAuditLogger . class . getName () , null );
77
81
});
78
82
79
83
SUPERUSER_SETUP_DELAY_MS .setLong (0 );
Original file line number Diff line number Diff line change 29
29
import java .util .concurrent .TimeUnit ;
30
30
import java .util .stream .Collectors ;
31
31
32
+ import org .apache .cassandra .audit .DiagnosticEventAuditLogger ;
33
+ import org .apache .cassandra .auth .CassandraRoleManager ;
34
+ import org .apache .cassandra .auth .PasswordAuthenticator ;
35
+
32
36
import org .junit .After ;
33
37
import org .junit .AfterClass ;
34
38
import org .junit .BeforeClass ;
@@ -64,11 +68,11 @@ public class CQLUserAuditTest
64
68
public static void setup () throws Exception
65
69
{
66
70
OverrideConfigurationLoader .override ((config ) -> {
67
- config .authenticator = new ParameterizedClass (" PasswordAuthenticator" );
68
- config .role_manager = new ParameterizedClass (" CassandraRoleManager" );
71
+ config .authenticator = new ParameterizedClass (PasswordAuthenticator . class . getName () );
72
+ config .role_manager = new ParameterizedClass (CassandraRoleManager . class . getName () );
69
73
config .diagnostic_events_enabled = true ;
70
74
config .audit_logging_options .enabled = true ;
71
- config .audit_logging_options .logger = new ParameterizedClass (" DiagnosticEventAuditLogger" , null );
75
+ config .audit_logging_options .logger = new ParameterizedClass (DiagnosticEventAuditLogger . class . getName () , null );
72
76
});
73
77
74
78
SUPERUSER_SETUP_DELAY_MS .setLong (0 );
You can’t perform that action at this time.
0 commit comments