[
https://issues.apache.org/jira/browse/HADOOP-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alejandro Abdelnur reopened HADOOP-7978:
----------------------------------------
it seems there is no standard for what goes first, we'll have to change the
test to test for both.
> TestHostnameFilter should work with localhost or localhost.localdomain
> -----------------------------------------------------------------------
>
> Key: HADOOP-7978
> URL: https://issues.apache.org/jira/browse/HADOOP-7978
> Project: Hadoop Common
> Issue Type: Test
> Components: fs, test
> Affects Versions: 0.23.0
> Reporter: Eli Collins
>
> TestHostnameFilter may currently fail with the following:
> {noformat}
> Error Message
> null expected:<localhost[.localdomain]> but was:<localhost[]>
> Stacktrace
> junit.framework.ComparisonFailure: null expected:<localhost[.localdomain]>
> but was:<localhost[]>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at
> org.apache.hadoop.lib.servlet.TestHostnameFilter$1.doFilter(TestHostnameFilter.java:50)
> at
> org.apache.hadoop.lib.servlet.HostnameFilter.doFilter(HostnameFilter.java:68)
> at
> org.apache.hadoop.lib.servlet.TestHostnameFilter.hostname(TestHostnameFilter.java:58)
> {noformat}
--
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