Package org.apache.accumulo.test
Class AuditMessageIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- 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
MINI_CLUSTER_ONLY, random, STANDALONE_CAPABLE_CLUSTER, SUNNY_DAY, ZOOKEEPER_TESTING_SERVER
-
-
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()
protected Duration
defaultTimeout()
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, getOnlyElement, getOnlyElement, getSslDir, getUniqueNames, initJar
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
-
-
-
Method Detail
-
defaultTimeout
protected Duration defaultTimeout()
Description copied from class:AccumuloITBase
Time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeout
in classAccumuloITBase
-
beforeClusterStart
public void beforeClusterStart(MiniAccumuloConfigImpl cfg)
- Overrides:
beforeClusterStart
in classConfigurableMacBase
-
testTableOperationsAudits
@Test public void testTableOperationsAudits() throws AccumuloException, AccumuloSecurityException, TableExistsException, TableNotFoundException, IOException
-
testUserOperationsAudits
@Test public void testUserOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, IOException
-
testImportExportOperationsAudits
@Test public void testImportExportOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testDataOperationsAudits
@Test public void testDataOperationsAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testDeniedAudits
@Test public void testDeniedAudits() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException, IOException
-
testFailedAudits
@Test public void testFailedAudits() throws AccumuloException, IOException
- Throws:
AccumuloException
IOException
-
-