use of org.apache.druid.server.initialization.JdbcAccessSecurityConfig in project druid by druid-io.
the class MySQLFirehoseDatabaseConnectorTest method testSuccessOnlyValidProperty.
@Test
public void testSuccessOnlyValidProperty() {
MetadataStorageConnectorConfig connectorConfig = new MetadataStorageConnectorConfig() {
@Override
public String getConnectURI() {
return "jdbc:mysql://localhost:3306/test?user=maytas&password=secret&keyonly";
}
};
JdbcAccessSecurityConfig securityConfig = newSecurityConfigEnforcingAllowList(ImmutableSet.of("user", "password", "keyonly", "etc"));
new MySQLFirehoseDatabaseConnector(connectorConfig, null, securityConfig, mySQLConnectorDriverConfig);
}
Aggregations