Package org.apache.hadoop.hbase.rest
Class TestNamespacesInstanceResource
java.lang.Object
org.apache.hadoop.hbase.rest.TestNamespacesInstanceResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.rest.client.Clientprivate static org.apache.hadoop.conf.Configurationprivate static javax.xml.bind.JAXBContextprotected static com.fasterxml.jackson.databind.ObjectMapperprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static final HBaseRESTTestingUtilityprivate static final HBaseTestingUtilprivate static TestNamespacesInstanceModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidcheckNamespaceProperties(org.apache.hadoop.hbase.NamespaceDescriptor nd, Map<String, String> testProps) private voidcheckNamespaceTables(List<org.apache.hadoop.hbase.rest.model.TableModel> namespaceTables, List<String> testTables) private org.apache.hadoop.hbase.NamespaceDescriptorfindNamespace(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) private static <T> TfromXML(byte[] content) static voidstatic voidvoidvoidvoidvoidvoidprivate 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:
IOExceptionjavax.xml.bind.JAXBException
-
testInvalidNamespacePostsAndPuts
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testNamespaceCreateAndDeleteXMLAndJSON
public void testNamespaceCreateAndDeleteXMLAndJSON() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testNamespaceCreateAndDeletePBAndNoBody
- Throws:
IOException
-