Package org.apache.hadoop.hbase
Class TestInfoServers
java.lang.Object
org.apache.hadoop.hbase.TestInfoServers
Testing, info servers are disabled. This test enables then and checks that they serve pages.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
assertContainsContent
(URL u, String expected) private void
assertDoesNotContainContent
(URL u, String expected) static void
private String
getUrlContent
(URL u) void
void
Ensure when we go to top level index pages that we get redirected to an info-server specific status page.void
Test that the status pages in the minicluster load properly.void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
name
-
-
Constructor Details
-
TestInfoServers
public TestInfoServers()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testGetMasterInfoPort
- Throws:
Exception
-
testInfoServersRedirect
Ensure when we go to top level index pages that we get redirected to an info-server specific status page.- Throws:
Exception
-
testInfoServersStatusPages
Test that the status pages in the minicluster load properly. This is somewhat a duplicate of TestRSStatusServlet and TestMasterStatusServlet, but those are true unit tests whereas this uses a cluster.- Throws:
Exception
-
testMasterServerReadOnly
- Throws:
Exception
-
assertContainsContent
- Throws:
IOException
-
assertDoesNotContainContent
- Throws:
IOException
-
getUrlContent
- Throws:
IOException
-