public class TestSuperUserQuotaPermissions extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static AtomicLong |
COUNTER |
private SpaceQuotaHelperForTests |
helper |
private static org.slf4j.Logger |
LOG |
private static String |
REGULARUSER_NAME |
private static org.apache.hadoop.security.UserGroupInformation |
REGULARUSER_UGI |
private static String |
SUPERUSER_NAME |
private static org.apache.hadoop.security.UserGroupInformation |
SUPERUSER_UGI |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestSuperUserQuotaPermissions() |
| Modifier and Type | Method and Description |
|---|---|
private <T> T |
doAsRegularUser(Callable<T> task) |
private <T> T |
doAsSuperUser(Callable<T> task) |
private <T> T |
doAsUser(org.apache.hadoop.security.UserGroupInformation ugi,
Callable<T> task) |
private org.apache.hadoop.hbase.client.Connection |
getConnection() |
void |
removeAllQuotas() |
static void |
setupMiniCluster() |
static void |
tearDown() |
void |
testSuperuserCanRemoveQuota() |
void |
testSuperUserCanStillCompact() |
private void |
waitForHFilesCountLessorEqual(org.apache.hadoop.hbase.TableName tn,
byte[] cf,
int count) |
private void |
waitForTableToEnterQuotaViolation(org.apache.hadoop.hbase.TableName tn) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final String SUPERUSER_NAME
private static final org.apache.hadoop.security.UserGroupInformation SUPERUSER_UGI
private static final String REGULARUSER_NAME
private static final org.apache.hadoop.security.UserGroupInformation REGULARUSER_UGI
private static final AtomicLong COUNTER
public org.junit.rules.TestName testName
private SpaceQuotaHelperForTests helper
public TestSuperUserQuotaPermissions()
public static void setupMiniCluster() throws Exception
Exceptionpublic void removeAllQuotas() throws Exception
Exceptionpublic void testSuperUserCanStillCompact() throws Exception
Exceptionpublic void testSuperuserCanRemoveQuota() throws Exception
Exceptionprivate org.apache.hadoop.hbase.client.Connection getConnection() throws IOException
IOExceptionprivate <T> T doAsSuperUser(Callable<T> task) throws Exception
Exceptionprivate <T> T doAsRegularUser(Callable<T> task) throws Exception
Exceptionprivate <T> T doAsUser(org.apache.hadoop.security.UserGroupInformation ugi, Callable<T> task) throws Exception
Exceptionprivate void waitForTableToEnterQuotaViolation(org.apache.hadoop.hbase.TableName tn) throws Exception
Exceptionprivate void waitForHFilesCountLessorEqual(org.apache.hadoop.hbase.TableName tn, byte[] cf, int count) throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.