HDFS-2840. TestHostnameFilter should work with localhost or localhost.localdomain (tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1236940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-01-28 00:24:46 +00:00
parent 8a234f394e
commit 0d5b734681
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public void hostname() throws Exception {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse)
throws IOException, ServletException {
Assert.assertEquals(HostnameFilter.get(), "localhost");
Assert.assertTrue(HostnameFilter.get().contains("localhost"));
invoked.set(true);
}
};

View File

@ -367,6 +367,8 @@ Release 0.23.1 - UNRELEASED
HDFS-2837. mvn javadoc:javadoc not seeing LimitedPrivate class (revans2 via tucu)
HDFS-2840. TestHostnameFilter should work with localhost or localhost.localdomain (tucu)
Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES