Package org.apache.accumulo.test
Class NewTableConfigurationIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.SharedMiniClusterBase
-
- org.apache.accumulo.test.NewTableConfigurationIT
-
- All Implemented Interfaces:
ClusterUsers
public class NewTableConfigurationIT extends SharedMiniClusterBase
-
-
Field Summary
-
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 NewTableConfigurationIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.static void
setup()
static void
teardown()
void
testAttachIteratorDisjointCheck()
Verify checkDisjoint works with iterators groups.void
testGroupsIteratorAndPropsTogether()
Verify use of all three ntc methods - setProperties, setLocalityGroups and attachIteratorvoid
testInvalidTablePropertiesSet()
Verify that properties set using NewTableConfiguration must be table properties.void
testIteratorConflictFound1()
Verify iterator conflicts are discoveredvoid
testIteratorConflictFound2()
void
testIteratorConflictFound3()
void
testMulitpleCallsToSetLocalityGroups()
Verify that setting locality groups more than once overwrite initial locality settings.void
testMultipleIteratorValid()
Verify that multiple calls to attachIterator keep adding to iterators, i.e., do not overwrite existing iterators.void
testNtcChaining()
Test NewTableConfiguration chaining.void
testOverlappingGroupsFail()
Verify that you cannot have overlapping locality groups.void
testPreconfiguredIteratorWithDefaultIterator2()
Test pre-configuring iterator with default iterator.void
testPreconfiguredIteratorWithDefaultIterator3()
Test pre-configuring iterator with default iterator.void
testPreconfigureIteratorWithDefaultIterator1()
Test pre-configuring iterator along with default iterator.void
testSetGroupsWithoutDefaultIterators()
Create table with initial locality groups but no default iteratorsvoid
testSetIteratorWithoutDefaultIterators()
Set up a pre-configured iterator while disabling the default iteratorsvoid
testSetLocalityGroupsDisjointCheck()
Verify checkDisjoint works with locality groups.void
testSetPropertiesAndGroups()
Verify that setting locality groups along with other properties works.void
testSetPropertiesDisjointCheck()
Verify that disjoint check works as expected with setPropertiesvoid
testSetPropertiesOverwriteOlderProperties()
Test that setting properties more than once overwrites the previous property settings.void
testSettingInitialIteratorWithAdditionalIteratorOptions()
Test pre-configuring iterator with additional options.void
testSettingIteratorAndProperties()
Create iterator and setProperties method together.void
testSimpleLocalityGroupCreation()
Test simplest case of setting locality groups at table creation.-
Methods inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
getAdminPrincipal, getAdminUser, getClientInfo, getClientProps, getCluster, getKdc, getMiniClusterDir, getPrincipal, getRootPassword, getToken, getUser, saslEnabled, startMiniCluster, startMiniClusterWithConfig, stopMiniCluster
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
defaultTimeoutSeconds
protected int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
teardown
public static void teardown()
-
testSetPropertiesOverwriteOlderProperties
public void testSetPropertiesOverwriteOlderProperties() throws AccumuloSecurityException, AccumuloException, TableExistsException
Test that setting properties more than once overwrites the previous property settings.
-
testOverlappingGroupsFail
public void testOverlappingGroupsFail()
Verify that you cannot have overlapping locality groups. Attempt to set a locality group with overlapping groups. This test should throw an IllegalArgumentException indicating that groups overlap.
-
testSimpleLocalityGroupCreation
public void testSimpleLocalityGroupCreation() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException
Test simplest case of setting locality groups at table creation.
-
testMulitpleCallsToSetLocalityGroups
public void testMulitpleCallsToSetLocalityGroups() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException
Verify that setting locality groups more than once overwrite initial locality settings.
-
testSetPropertiesAndGroups
public void testSetPropertiesAndGroups() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException
Verify that setting locality groups along with other properties works.
-
testInvalidTablePropertiesSet
public void testInvalidTablePropertiesSet()
Verify that properties set using NewTableConfiguration must be table properties.
-
testSetGroupsWithoutDefaultIterators
public void testSetGroupsWithoutDefaultIterators() throws AccumuloSecurityException, AccumuloException, TableExistsException, TableNotFoundException
Create table with initial locality groups but no default iterators
-
testPreconfigureIteratorWithDefaultIterator1
public void testPreconfigureIteratorWithDefaultIterator1() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Test pre-configuring iterator along with default iterator. Configure IteratorSetting values within method call.
-
testPreconfiguredIteratorWithDefaultIterator2
public void testPreconfiguredIteratorWithDefaultIterator2() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Test pre-configuring iterator with default iterator. Configure IteratorSetting values into method call.
-
testPreconfiguredIteratorWithDefaultIterator3
public void testPreconfiguredIteratorWithDefaultIterator3() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Test pre-configuring iterator with default iterator. Pass in IteratorScope value in method arguments.
-
testSettingInitialIteratorWithAdditionalIteratorOptions
public void testSettingInitialIteratorWithAdditionalIteratorOptions() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Test pre-configuring iterator with additional options.
-
testSetIteratorWithoutDefaultIterators
public void testSetIteratorWithoutDefaultIterators() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Set up a pre-configured iterator while disabling the default iterators
-
testSettingIteratorAndProperties
public void testSettingIteratorAndProperties() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Create iterator and setProperties method together.
-
testIteratorConflictFound1
public void testIteratorConflictFound1() throws AccumuloException, AccumuloSecurityException, TableExistsException
Verify iterator conflicts are discovered
-
testIteratorConflictFound2
public void testIteratorConflictFound2() throws AccumuloException, AccumuloSecurityException, TableExistsException
-
testIteratorConflictFound3
public void testIteratorConflictFound3() throws AccumuloException, AccumuloSecurityException, TableExistsException
-
testMultipleIteratorValid
public void testMultipleIteratorValid() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Verify that multiple calls to attachIterator keep adding to iterators, i.e., do not overwrite existing iterators.
-
testGroupsIteratorAndPropsTogether
public void testGroupsIteratorAndPropsTogether() throws AccumuloException, TableNotFoundException, AccumuloSecurityException, TableExistsException
Verify use of all three ntc methods - setProperties, setLocalityGroups and attachIterator
-
testNtcChaining
public void testNtcChaining() throws AccumuloException, AccumuloSecurityException, TableExistsException, TableNotFoundException
Test NewTableConfiguration chaining.
-
testSetPropertiesDisjointCheck
public void testSetPropertiesDisjointCheck()
Verify that disjoint check works as expected with setProperties
-
testSetLocalityGroupsDisjointCheck
public void testSetLocalityGroupsDisjointCheck()
Verify checkDisjoint works with locality groups.
-
testAttachIteratorDisjointCheck
public void testAttachIteratorDisjointCheck()
Verify checkDisjoint works with iterators groups.
-
-