Package org.apache.hadoop.hbase.rest
Class TestNamespacesInstanceResource
java.lang.Object
org.apache.hadoop.hbase.rest.TestNamespacesInstanceResource
@Tag("org.apache.hadoop.hbase.testclassification.RestTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestNamespacesInstanceResource
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 final Stringprivate static final Stringprivate static final Stringprivate static final 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> Tstatic voidstatic voidvoidvoidvoidvoidvoidprivate static byte[]toXML(org.apache.hadoop.hbase.rest.model.NamespacesInstanceModel model)
-
Field Details
-
NAMESPACE1
- See Also:
-
NAMESPACE1_PROPS
-
NAMESPACE2
- See Also:
-
NAMESPACE2_PROPS
-
NAMESPACE3
- See Also:
-
NAMESPACE3_PROPS
-
NAMESPACE4
- See Also:
-
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
@Test public void testGetNamespaceTablesAndCannotDeleteNamespace() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testInvalidNamespacePostsAndPuts
@Disabled("HBASE-19210") @Test public void testInvalidNamespacePostsAndPuts() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testNamespaceCreateAndDeleteXMLAndJSON
@Test public void testNamespaceCreateAndDeleteXMLAndJSON() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testNamespaceCreateAndDeletePBAndNoBody
- Throws:
IOException
-