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
Exception
public static void afterClass() throws Exception
Exception
public void testGetMasterInfoPort() throws Exception
Exception
public void testInfoServersRedirect() throws Exception
Exception
public void testInfoServersStatusPages() throws Exception
Exception
public void testMasterServerReadOnly() throws Exception
Exception
private void assertContainsContent(URL u, String expected) throws IOException
IOException
private void assertDoesNotContainContent(URL u, String expected) throws IOException
IOException
private String getUrlContent(URL u) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.