Class KerberosIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.KerberosIT
-
@Tag("MiniClusterOnly") public class KerberosIT extends AccumuloITBase
MAC test which usesMiniKdc
to simulate ta secure environment. Can be used as a sanity check for Kerberos/SASL testing.
-
-
Field Summary
-
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 KerberosIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Duration
defaultTimeout()
Time to wait per-method before declaring a timeout, in seconds.static void
startKdc()
void
startMac()
static void
stopKdc()
void
stopMac()
void
testAdminUser()
void
testDelegationToken()
void
testDelegationTokenAsDifferentUser()
void
testDelegationTokenWithInvalidLifetime()
void
testDelegationTokenWithReducedLifetime()
void
testGetDelegationTokenDenied()
void
testNewUser()
void
testRestartedManagerReusesSecretKey()
void
testRootUserHasIrrevocablePermissions()
void
testUserPrivilegesForTable()
void
testUserPrivilegesThroughGrant()
-
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
-
stopKdc
@AfterAll public static void stopKdc()
-
testUserPrivilegesThroughGrant
@Test public void testUserPrivilegesThroughGrant() throws Exception
- Throws:
Exception
-
testUserPrivilegesForTable
@Test public void testUserPrivilegesForTable() throws Exception
- Throws:
Exception
-
testDelegationTokenAsDifferentUser
@Test public void testDelegationTokenAsDifferentUser() throws Exception
- Throws:
Exception
-
testGetDelegationTokenDenied
@Test public void testGetDelegationTokenDenied() throws Exception
- Throws:
Exception
-
testRestartedManagerReusesSecretKey
@Test public void testRestartedManagerReusesSecretKey() throws Exception
- Throws:
Exception
-
testDelegationTokenWithInvalidLifetime
@Test public void testDelegationTokenWithInvalidLifetime() throws Throwable
- Throws:
Throwable
-
testDelegationTokenWithReducedLifetime
@Test public void testDelegationTokenWithReducedLifetime() throws Throwable
- Throws:
Throwable
-
-