Search in sources :

Example 1 with SQLAuditManagerConfig

use of io.druid.server.audit.SQLAuditManagerConfig in project druid by druid-io.

the class SQLMetadataRuleManagerTest method setUp.

@Before
public void setUp() {
    connector = derbyConnectorRule.getConnector();
    tablesConfig = derbyConnectorRule.metadataTablesConfigSupplier().get();
    connector.createAuditTable();
    auditManager = new SQLAuditManager(connector, Suppliers.ofInstance(tablesConfig), new NoopServiceEmitter(), mapper, new SQLAuditManagerConfig());
    connector.createRulesTable();
    ruleManager = new SQLMetadataRuleManager(mapper, new MetadataRuleManagerConfig(), tablesConfig, connector, auditManager);
}
Also used : SQLAuditManagerConfig(io.druid.server.audit.SQLAuditManagerConfig) SQLAuditManager(io.druid.server.audit.SQLAuditManager) NoopServiceEmitter(io.druid.server.metrics.NoopServiceEmitter) Before(org.junit.Before)

Aggregations

SQLAuditManager (io.druid.server.audit.SQLAuditManager)1 SQLAuditManagerConfig (io.druid.server.audit.SQLAuditManagerConfig)1 NoopServiceEmitter (io.druid.server.metrics.NoopServiceEmitter)1 Before (org.junit.Before)1