Package org.apache.accumulo.test
Class AuditMessageIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- org.apache.accumulo.test.AuditMessageIT
-
public class AuditMessageIT extends ConfigurableMacBase
Tests that Accumulo is outputting audit messages as expected. Since this is using MiniAccumuloCluster, it could take a while if we test everything in isolation. We test blocks of related operations, run the whole test in one MiniAccumulo instance, trying to clean up objects between each test. The MiniAccumuloClusterTest sets up the log4j stuff differently to an installed instance, instead piping everything through stdout and writing to a set location so we have to find the logs and grep the bits we need out.
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
cluster, log, ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description AuditMessageIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeClusterStart(MiniAccumuloConfigImpl cfg)
void
cleanUp()
int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
resetInstance()
void
testDataOperationsAudits()
void
testDeniedAudits()
void
testFailedAudits()
void
testImportExportOperationsAudits()
void
testTableOperationsAudits()
void
testUserOperationsAudits()
-
Methods inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
configure, configureForEnvironment, configureForSsl, exec, getClientProperties, getCluster, getServerContext, setUp, tearDown
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
defaultTimeoutSeconds
public int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
beforeClusterStart
public void beforeClusterStart(MiniAccumuloConfigImpl cfg)
- Overrides:
beforeClusterStart
in classConfigurableMacBase
-
testTableOperationsAudits
public void testTableOperationsAudits() throws AccumuloException, AccumuloSecurityException, TableExistsException, TableNotFoundException, IOException
-
testUserOperationsAudits
public void testUserOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, IOException
-
testImportExportOperationsAudits
public void testImportExportOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testDataOperationsAudits
public void testDataOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testDeniedAudits
public void testDeniedAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testFailedAudits
public void testFailedAudits() throws AccumuloException, IOException
- Throws:
AccumuloException
IOException
-
-