Search in sources :

Example 1 with SQLAuditManager

use of org.apache.druid.server.audit.SQLAuditManager 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);
    connector.createSegmentTable();
    publisher = new SQLMetadataSegmentPublisher(jsonMapper, derbyConnectorRule.metadataTablesConfigSupplier().get(), connector);
}
Also used : SQLAuditManagerConfig(org.apache.druid.server.audit.SQLAuditManagerConfig) SQLAuditManager(org.apache.druid.server.audit.SQLAuditManager) NoopServiceEmitter(org.apache.druid.server.metrics.NoopServiceEmitter) Before(org.junit.Before)

Aggregations

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