xieguiming created HADOOP-8514:
----------------------------------
Summary: Failed tests: testLocalHostNameForNullOrWild
Key: HADOOP-8514
URL: https://issues.apache.org/jira/browse/HADOOP-8514
Project: Hadoop Common
Issue Type: Bug
Components: security
Affects Versions: 0.23.1
Reporter: xieguiming
Priority: Minor
Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
We can modify like this:
{code:title=TestSecurityUtil.java|borderStyle=solid}
@Test
public void testLocalHostNameForNullOrWild() throws Exception {
// add toLowerCase() here
String local = SecurityUtil.getLocalHostName().toLowerCase();
assertEquals("hdfs/" + local + "@REALM",
SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
assertEquals("hdfs/" + local + "@REALM",
SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
|