public class TestInfoServers extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestInfoServers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
private void |
assertContainsContent(URL u,
String expected) |
private void |
assertDoesNotContainContent(URL u,
String expected) |
static void |
beforeClass() |
private String |
getUrlContent(URL u) |
void |
testGetMasterInfoPort() |
void |
testInfoServersRedirect()
Ensure when we go to top level index pages that we get redirected to an info-server specific
status page.
|
void |
testInfoServersStatusPages()
Test that the status pages in the minicluster load properly.
|
void |
testMasterServerReadOnly() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
public org.junit.rules.TestName name
public TestInfoServers()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testGetMasterInfoPort() throws Exception
Exceptionpublic void testInfoServersRedirect() throws Exception
Exceptionpublic void testInfoServersStatusPages() throws Exception
Exceptionpublic void testMasterServerReadOnly() throws Exception
Exceptionprivate void assertContainsContent(URL u, String expected) throws IOException
IOExceptionprivate void assertDoesNotContainContent(URL u, String expected) throws IOException
IOExceptionprivate String getUrlContent(URL u) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.