Package org.apache.accumulo.test
Class ShellServerIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.SharedMiniClusterBase
-
- org.apache.accumulo.test.ShellServerIT
-
- All Implemented Interfaces:
ClusterUsers
public class ShellServerIT extends SharedMiniClusterBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShellServerIT.HexFormatter
SimpleFormatter
that will convert each character in the Value from decimal to hexadecimal.static class
ShellServerIT.StringInputStream
static class
ShellServerIT.TestOutputStream
static class
ShellServerIT.TestShell
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TestName
name
-
Fields inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
TRUE
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description ShellServerIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addauths()
void
badLogin()
void
byeQuitExit()
protected void
checkTableForProperty(TableOperations tops, String tableName, String expectedKey, String expectedValue)
void
classpath()
void
clearCls()
void
clonetable()
void
clonetableOffline()
void
constraint()
void
createTableWithProperties()
void
debug()
int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
deletemany()
void
deleterows()
void
deleteTables()
void
du()
void
durability()
void
egrep()
void
execfile()
void
exporttableImporttable()
void
extensions()
void
formatter()
void
getAuths()
void
grep()
void
groups()
void
help()
void
history()
void
importDirectory()
void
importDirectoryCmdFmt()
Validate importdirectory command accepts adding -t tablename option or the accepts original format that uses the current working table.void
info()
void
interpreter()
void
iter()
void
listcompactions()
void
listscans()
void
maxrow()
void
merge()
void
namespaces()
void
notable()
void
ping()
void
renametable()
void
scans()
void
scansWithClassLoaderContext()
void
setIterOptionPrompt()
void
setscaniterDeletescaniter()
static void
setupMiniCluster()
void
setupShell()
void
sleep()
void
systempermission()
void
tables()
static void
tearDownAfterClass()
void
tearDownShell()
void
testCompactions()
void
testCompactionSelection()
void
testCompactionSelectionAndStrategy()
void
testGetSplitsScanRange()
void
testPertableClasspath()
void
testScanScample()
void
testScanTableWithIterSetWithoutProfile()
The purpose of this test is to verify that you can successfully scan a table with a regular iterator.void
trace()
void
user()
void
whoami()
-
Methods inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
getAdminUser, getCluster, getConnector, getKdc, getMiniClusterDir, getPrincipal, getRootPassword, getToken, getUser, startMiniCluster, startMiniClusterWithConfig, stopMiniCluster
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
tearDownShell
public void tearDownShell()
-
defaultTimeoutSeconds
public int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
setscaniterDeletescaniter
public void setscaniterDeletescaniter() throws Exception
- Throws:
Exception
-
checkTableForProperty
protected void checkTableForProperty(TableOperations tops, String tableName, String expectedKey, String expectedValue) throws Exception
- Throws:
Exception
-
createTableWithProperties
public void createTableWithProperties() throws Exception
- Throws:
Exception
-
testCompactionSelectionAndStrategy
public void testCompactionSelectionAndStrategy() throws Exception
- Throws:
Exception
-
scansWithClassLoaderContext
public void scansWithClassLoaderContext() throws IOException
- Throws:
IOException
-
testScanTableWithIterSetWithoutProfile
public void testScanTableWithIterSetWithoutProfile() throws Exception
The purpose of this test is to verify that you can successfully scan a table with a regular iterator. It was written to verify that the changes made while updating the setshelliter command did not break the existing setiter capabilities. It tests that a table can be scanned with an iterator both while within a table context and also while in the 'notable' context.- Throws:
Exception
-
importDirectoryCmdFmt
public void importDirectoryCmdFmt() throws Exception
Validate importdirectory command accepts adding -t tablename option or the accepts original format that uses the current working table. Currently this test does not validate the actual import - only the command syntax.- Throws:
Exception
- any exception is a test failure.
-
-