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
Exception
public void removeAllQuotas() throws Exception
Exception
public void testSuperUserCanStillCompact() throws Exception
Exception
public void testSuperuserCanRemoveQuota() throws Exception
Exception
private org.apache.hadoop.hbase.client.Connection getConnection() throws IOException
IOException
private <T> T doAsSuperUser(Callable<T> task) throws Exception
Exception
private <T> T doAsRegularUser(Callable<T> task) throws Exception
Exception
private <T> T doAsUser(org.apache.hadoop.security.UserGroupInformation ugi, Callable<T> task) throws Exception
Exception
private void waitForTableToEnterQuotaViolation(org.apache.hadoop.hbase.TableName tn) throws Exception
Exception
private void waitForHFilesCountLessorEqual(org.apache.hadoop.hbase.TableName tn, byte[] cf, int count) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.