Package org.apache.hadoop.hbase.quotas
Class TestQuotaTableUtil
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaTableUtil
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestQuotaTableUtil
extends Object
Test the quota table helpers (e.g. CRUD operations)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Connectionprivate intprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()voidbefore()private voidprivate org.apache.hadoop.hbase.TableNamegetUniqueTableName(org.junit.jupiter.api.TestInfo testInfo) static voidstatic voidvoidtestDeleteSnapshots(org.junit.jupiter.api.TestInfo testInfo) voidvoidvoidvoidtestSerDeViolationPolicies(org.junit.jupiter.api.TestInfo testInfo) voidtestTableQuotaUtil(org.junit.jupiter.api.TestInfo testInfo) voidtestUserQuotaUtil(org.junit.jupiter.api.TestInfo testInfo) private voidverifyTableSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshotName, long expectedSize)
-
Field Details
-
TEST_UTIL
-
connection
-
tableNameCounter
-
-
Constructor Details
-
TestQuotaTableUtil
public TestQuotaTableUtil()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
after
- Throws:
IOException
-
testDeleteSnapshots
- Throws:
Exception
-
testTableQuotaUtil
- Throws:
Exception
-
testNamespaceQuotaUtil
- Throws:
Exception
-
testUserQuotaUtil
- Throws:
Exception
-
testSerDeViolationPolicies
@Test public void testSerDeViolationPolicies(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testSerdeTableSnapshotSizes
- Throws:
Exception
-
testReadNamespaceSnapshotSizes
- Throws:
Exception
-
getUniqueTableName
private org.apache.hadoop.hbase.TableName getUniqueTableName(org.junit.jupiter.api.TestInfo testInfo) -
verifyTableSnapshotSize
private void verifyTableSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshotName, long expectedSize) throws IOException - Throws:
IOException
-
cleanUpSnapshotSizes
- Throws:
IOException
-