Class TestMetaBrowser
java.lang.Object
org.apache.hadoop.hbase.master.http.TestMetaBrowser
Cluster-backed correctness tests for the functionality provided by
MetaBrowser
.-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Helper for mocking anHttpServletRequest
relevant to the test. -
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.AsyncAdmin
private final ClearUserNamespacesAndTablesRule
private org.apache.hadoop.hbase.client.AsyncConnection
private final ConnectionRule
static final MiniClusterRule
org.junit.rules.TestRule
org.junit.rules.TestName
static final HBaseClassTestRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
before()
private org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
private CompletableFuture<Void>
createNamespace
(String namespace) private CompletableFuture<Void>
createTable
(org.apache.hadoop.hbase.TableName tableName) private CompletableFuture<Void>
createTable
(org.apache.hadoop.hbase.TableName tableName, int splitCount) private CompletableFuture<Void>
createTableWithReplicas
(org.apache.hadoop.hbase.TableName tableName, int replicaCount) void
limit()
void
void
void
void
void
private org.apache.hadoop.hbase.client.TableDescriptor
tableDescriptor
(org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.client.TableDescriptor
tableDescriptor
(org.apache.hadoop.hbase.TableName tableName, int replicaCount)
-
Field Details
-
testRule
-
miniClusterRule
-
connectionRule
-
clearUserNamespacesAndTablesRule
-
rule
-
testNameRule
-
connection
-
admin
-
-
Constructor Details
-
TestMetaBrowser
public TestMetaBrowser()
-
-
Method Details
-
before
-
noFilters
-
limit
-
regionStateFilter
-
scanTableFilter
-
paginateWithReplicas
-
paginateWithTableFilter
-
columnFamilyDescriptor
-
tableDescriptor
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor(org.apache.hadoop.hbase.TableName tableName) -
tableDescriptor
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor(org.apache.hadoop.hbase.TableName tableName, int replicaCount) -
createTable
-
createTable
private CompletableFuture<Void> createTable(org.apache.hadoop.hbase.TableName tableName, int splitCount) -
createTableWithReplicas
private CompletableFuture<Void> createTableWithReplicas(org.apache.hadoop.hbase.TableName tableName, int replicaCount) -
createNamespace
-