Package org.apache.hadoop.hbase.rest
Class TestNamespacesInstanceResource
java.lang.Object
org.apache.hadoop.hbase.rest.TestNamespacesInstanceResource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.rest.client.Client
private static org.apache.hadoop.conf.Configuration
private static javax.xml.bind.JAXBContext
protected static com.fasterxml.jackson.databind.ObjectMapper
private static String
private static String
private static String
private static String
private static final HBaseRESTTestingUtility
private static final HBaseTestingUtil
private static TestNamespacesInstanceModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
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
static void
void
void
void
void
void
private static byte[]
toXML
(org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel model)
-
Field Details
-
CLASS_RULE
-
NAMESPACE1
-
NAMESPACE1_PROPS
-
NAMESPACE2
-
NAMESPACE2_PROPS
-
NAMESPACE3
-
NAMESPACE3_PROPS
-
NAMESPACE4
-
NAMESPACE4_PROPS
-
TEST_UTIL
-
REST_TEST_UTIL
-
client
-
context
-
conf
-
testNamespacesInstanceModel
-
jsonMapper
-
-
Constructor Details
-
TestNamespacesInstanceResource
public TestNamespacesInstanceResource()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
toXML
private static byte[] toXML(org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel model) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
fromXML
- Throws:
javax.xml.bind.JAXBException
-
findNamespace
private org.apache.hadoop.hbase.NamespaceDescriptor findNamespace(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) throws IOException - Throws:
IOException
-
checkNamespaceProperties
private void checkNamespaceProperties(org.apache.hadoop.hbase.NamespaceDescriptor nd, Map<String, String> testProps) -
checkNamespaceProperties
-
checkNamespaceTables
private void checkNamespaceTables(List<org.apache.hadoop.hbase.rest.model.TableModel> namespaceTables, List<String> testTables) -
testCannotDeleteDefaultAndHbaseNamespaces
- Throws:
IOException
-
testGetNamespaceTablesAndCannotDeleteNamespace
public void testGetNamespaceTablesAndCannotDeleteNamespace() throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
testInvalidNamespacePostsAndPuts
- Throws:
IOException
javax.xml.bind.JAXBException
-
testNamespaceCreateAndDeleteXMLAndJSON
public void testNamespaceCreateAndDeleteXMLAndJSON() throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
testNamespaceCreateAndDeletePBAndNoBody
- Throws:
IOException
-