public class TestZKReplicationPeerStorage extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static Random |
RNG |
private static org.apache.hadoop.hbase.replication.ZKReplicationPeerStorage |
STORAGE |
private static HBaseZKTestingUtility |
UTIL |
Constructor and Description |
---|
TestZKReplicationPeerStorage() |
Modifier and Type | Method and Description |
---|---|
private void |
assertConfigEquals(org.apache.hadoop.hbase.replication.ReplicationPeerConfig expected,
org.apache.hadoop.hbase.replication.ReplicationPeerConfig actual) |
private void |
assertMapEquals(Map<org.apache.hadoop.hbase.TableName,List<String>> expected,
Map<org.apache.hadoop.hbase.TableName,List<String>> actual) |
private void |
assertSetEquals(Set<String> expected,
Set<String> actual) |
void |
cleanCustomConfigurations() |
private org.apache.hadoop.hbase.replication.ReplicationPeerConfig |
getConfig(int seed) |
private Set<String> |
randNamespaces(Random rand) |
private Map<org.apache.hadoop.hbase.TableName,List<String>> |
randTableCFs(Random rand) |
static void |
setUp() |
static void |
tearDown() |
void |
test() |
void |
testBaseReplicationPeerConfig() |
void |
testBaseReplicationRemovePeerConfig() |
void |
testBaseReplicationRemovePeerConfigWithNoExistingConfig() |
void |
testPeerNameControl() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseZKTestingUtility UTIL
private static org.apache.hadoop.hbase.replication.ZKReplicationPeerStorage STORAGE
public TestZKReplicationPeerStorage()
public static void tearDown() throws IOException
IOException
public void cleanCustomConfigurations()
private Set<String> randNamespaces(Random rand)
private Map<org.apache.hadoop.hbase.TableName,List<String>> randTableCFs(Random rand)
private org.apache.hadoop.hbase.replication.ReplicationPeerConfig getConfig(int seed)
private void assertSetEquals(Set<String> expected, Set<String> actual)
private void assertMapEquals(Map<org.apache.hadoop.hbase.TableName,List<String>> expected, Map<org.apache.hadoop.hbase.TableName,List<String>> actual)
private void assertConfigEquals(org.apache.hadoop.hbase.replication.ReplicationPeerConfig expected, org.apache.hadoop.hbase.replication.ReplicationPeerConfig actual)
public void test() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testBaseReplicationPeerConfig() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testBaseReplicationRemovePeerConfig() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testBaseReplicationRemovePeerConfigWithNoExistingConfig() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testPeerNameControl() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.