public class TestNamespacesInstanceResource extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rest.client.Client |
client |
private static org.apache.hadoop.conf.Configuration |
conf |
private static JAXBContext |
context |
protected static com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper |
private static String |
NAMESPACE1 |
private static Map<String,String> |
NAMESPACE1_PROPS |
private static String |
NAMESPACE2 |
private static Map<String,String> |
NAMESPACE2_PROPS |
private static String |
NAMESPACE3 |
private static Map<String,String> |
NAMESPACE3_PROPS |
private static String |
NAMESPACE4 |
private static Map<String,String> |
NAMESPACE4_PROPS |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static HBaseTestingUtility |
TEST_UTIL |
private static TestNamespacesInstanceModel |
testNamespacesInstanceModel |
Constructor and Description |
---|
TestNamespacesInstanceResource() |
Modifier and Type | Method and Description |
---|---|
private void |
checkNamespaceProperties(Map<String,String> namespaceProps,
Map<String,String> testProps) |
private void |
checkNamespaceProperties(org.apache.hadoop.hbase.NamespaceDescriptor nd,
Map<String,String> testProps) |
private void |
checkNamespaceTables(List<org.apache.hadoop.hbase.rest.model.TableModel> namespaceTables,
List<String> testTables) |
private org.apache.hadoop.hbase.NamespaceDescriptor |
findNamespace(org.apache.hadoop.hbase.client.Admin admin,
String namespaceName) |
private static <T> T |
fromXML(byte[] content) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCannotDeleteDefaultAndHbaseNamespaces() |
void |
testGetNamespaceTablesAndCannotDeleteNamespace() |
void |
testInvalidNamespacePostsAndPuts() |
void |
testNamespaceCreateAndDeletePBAndNoBody() |
void |
testNamespaceCreateAndDeleteXMLAndJSON() |
private static byte[] |
toXML(org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel model) |
public static final HBaseClassTestRule CLASS_RULE
private static String NAMESPACE1
private static Map<String,String> NAMESPACE1_PROPS
private static String NAMESPACE2
private static Map<String,String> NAMESPACE2_PROPS
private static String NAMESPACE3
private static Map<String,String> NAMESPACE3_PROPS
private static String NAMESPACE4
private static Map<String,String> NAMESPACE4_PROPS
private static final HBaseTestingUtility TEST_UTIL
private static final HBaseRESTTestingUtility REST_TEST_UTIL
private static org.apache.hadoop.hbase.rest.client.Client client
private static JAXBContext context
private static org.apache.hadoop.conf.Configuration conf
private static TestNamespacesInstanceModel testNamespacesInstanceModel
protected static com.fasterxml.jackson.databind.ObjectMapper jsonMapper
public TestNamespacesInstanceResource()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static byte[] toXML(org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel model) throws JAXBException
JAXBException
private static <T> T fromXML(byte[] content) throws JAXBException
JAXBException
private org.apache.hadoop.hbase.NamespaceDescriptor findNamespace(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) throws IOException
IOException
private void checkNamespaceProperties(org.apache.hadoop.hbase.NamespaceDescriptor nd, Map<String,String> testProps)
private void checkNamespaceProperties(Map<String,String> namespaceProps, Map<String,String> testProps)
private void checkNamespaceTables(List<org.apache.hadoop.hbase.rest.model.TableModel> namespaceTables, List<String> testTables)
public void testCannotDeleteDefaultAndHbaseNamespaces() throws IOException
IOException
public void testGetNamespaceTablesAndCannotDeleteNamespace() throws IOException, JAXBException
IOException
JAXBException
public void testInvalidNamespacePostsAndPuts() throws IOException, JAXBException
IOException
JAXBException
public void testNamespaceCreateAndDeleteXMLAndJSON() throws IOException, JAXBException
IOException
JAXBException
public void testNamespaceCreateAndDeletePBAndNoBody() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.