wip
This commit is contained in:
parent
389c9bed7c
commit
a43d2d8f5b
1 changed files with 11 additions and 0 deletions
|
@ -79,6 +79,17 @@ class AuditServiceTest {
|
|||
.thenReturn(mock(KafkaProducer.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
void logOnlyAlterOpsByDefault() {
|
||||
var auditProps = new ClustersProperties.AuditProperties();
|
||||
auditProps.setConsoleAuditEnabled(true);
|
||||
clustersProperties.setAudit(auditProps);
|
||||
|
||||
var maybeWriter = createAuditWriter(cluster, () -> adminClientMock, producerSupplierMock);
|
||||
assertThat(maybeWriter)
|
||||
.hasValueSatisfying(w -> assertThat(w.logAlterOperationsOnly()).isTrue());
|
||||
}
|
||||
|
||||
@Test
|
||||
void noWriterIfNoAuditPropsSet() {
|
||||
var maybeWriter = createAuditWriter(cluster, () -> adminClientMock, producerSupplierMock);
|
||||
|
|
Loading…
Add table
Reference in a new issue