Package org.apache.accumulo.harness
Class AccumuloITBase
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- Direct Known Subclasses:
AccumuloClusterHarness
,ConfigurableMacBase
,KerberosIT
,KerberosRenewalIT
,SharedMiniClusterBase
public class AccumuloITBase extends WithTestNames
Methods, setup and/or infrastructure which are common to any Accumulo integration test.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MINI_CLUSTER_ONLY
static String
STANDALONE_CAPABLE_CLUSTER
static String
SUNNY_DAY
static String
ZOOKEEPER_TESTING_SERVER
-
Constructor Summary
Constructors Constructor Description AccumuloITBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static File
createTestDir(String name)
protected Duration
defaultTimeout()
Time to wait per-method before declaring a timeout.protected <T> T
getOnlyElement(Collection<T> c)
protected Map.Entry<Key,Value>
getOnlyElement(Scanner s)
static File
getSslDir(File baseDir)
Determines an appropriate directory name for holding generated ssl files for a test.String[]
getUniqueNames(int num)
protected File
initJar(String jarResourcePath, String namePrefix, String testDir)
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
-
-
-
Field Detail
-
STANDALONE_CAPABLE_CLUSTER
public static final String STANDALONE_CAPABLE_CLUSTER
- See Also:
- Constant Field Values
-
SUNNY_DAY
public static final String SUNNY_DAY
- See Also:
- Constant Field Values
-
MINI_CLUSTER_ONLY
public static final String MINI_CLUSTER_ONLY
- See Also:
- Constant Field Values
-
ZOOKEEPER_TESTING_SERVER
public static final String ZOOKEEPER_TESTING_SERVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOnlyElement
protected <T> T getOnlyElement(Collection<T> c)
-
getUniqueNames
public String[] getUniqueNames(int num)
-
getSslDir
public static File getSslDir(File baseDir)
Determines an appropriate directory name for holding generated ssl files for a test. The directory returned will have the same name as the provided directory, but with the suffix "-ssl" appended. This new directory is not created here, but is expected to be created as needed.- Parameters:
baseDir
- the original directory, which the new directory will be created next to; it should exist- Returns:
- the new directory (is not created)
-
defaultTimeout
protected Duration defaultTimeout()
Time to wait per-method before declaring a timeout.
-
initJar
protected File initJar(String jarResourcePath, String namePrefix, String testDir) throws IOException
- Throws:
IOException
-
-