Package org.apache.accumulo.test
Class NamespacesIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.SharedMiniClusterBase
-
- org.apache.accumulo.test.NamespacesIT
-
- All Implemented Interfaces:
ClusterUsers
@Tag("MiniClusterOnly") public class NamespacesIT extends SharedMiniClusterBase
Test different namespace permissions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NamespacesIT.SimpleFilter
-
Field Summary
-
Fields inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
TRUE
-
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 NamespacesIT()
-
Method Summary
-
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, 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
-
teardown
@AfterAll public static void teardown()
-
setupConnectorAndNamespace
@BeforeEach public void setupConnectorAndNamespace()
-
checkReservedNamespaces
@Test public void checkReservedNamespaces()
-
checkBuiltInNamespaces
@Test public void checkBuiltInNamespaces() throws Exception
- Throws:
Exception
-
createTableInDefaultNamespace
@Test public void createTableInDefaultNamespace() throws Exception
- Throws:
Exception
-
createTableInAccumuloNamespace
@Test public void createTableInAccumuloNamespace()
-
deleteBuiltinNamespaces
@Test public void deleteBuiltinNamespaces()
-
createTableInMissingNamespace
@Test public void createTableInMissingNamespace() throws Exception
- Throws:
Exception
-
createNamespaceWithNamespaceLengthLimit
@Test public void createNamespaceWithNamespaceLengthLimit() throws AccumuloException, AccumuloSecurityException, NamespaceExistsException
-
createAndDeleteNamespace
@Test public void createAndDeleteNamespace() throws Exception
- Throws:
Exception
-
deleteNonEmptyNamespace
@Test public void deleteNonEmptyNamespace() throws Exception
- Throws:
Exception
-
verifyPropertyInheritance
@Test public void verifyPropertyInheritance() throws Exception
- Throws:
Exception
-
verifyIteratorInheritance
@Test public void verifyIteratorInheritance() throws Exception
- Throws:
Exception
-
renameNamespaceWithTable
@Test public void renameNamespaceWithTable() throws Exception
- Throws:
Exception
-
verifyConstraintInheritance
@Test public void verifyConstraintInheritance() throws Exception
- Throws:
Exception
-
testPermissions
@Test public void testPermissions() throws Exception
Tests new Namespace permissions as well as modifications to Table permissions because of namespaces. Checks each permission to first make sure the user doesn't have permission to perform the action, then root grants them the permission and we check to make sure they could perform the action.- Throws:
Exception
-
verifySystemPropertyInheritance
@Test public void verifySystemPropertyInheritance() throws Exception
- Throws:
Exception
-
testModifyingPermissions
@Test public void testModifyingPermissions() throws Exception
- Throws:
Exception
-
verifyTableOperationsExceptions
@Test public void verifyTableOperationsExceptions() throws Exception
- Throws:
Exception
-
-