HADOOP-10664. TestNetUtils.testNormalizeHostName fails. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1601478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2014-06-09 18:53:19 +00:00
parent a72f850e33
commit d4b9a04840
2 changed files with 4 additions and 2 deletions

View File

@ -536,6 +536,8 @@ Release 2.5.0 - UNRELEASED
HADOOP-10647. String Format Exception in SwiftNativeFileSystemStore.java. HADOOP-10647. String Format Exception in SwiftNativeFileSystemStore.java.
(Gene Kim via stevel) (Gene Kim via stevel)
HADOOP-10664. TestNetUtils.testNormalizeHostName fails. (atm)
Release 2.4.1 - UNRELEASED Release 2.4.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -605,7 +605,7 @@ public class TestNetUtils {
@Test @Test
public void testNormalizeHostName() { public void testNormalizeHostName() {
List<String> hosts = Arrays.asList(new String[] {"127.0.0.1", List<String> hosts = Arrays.asList(new String[] {"127.0.0.1",
"localhost", "3w.org", "UnknownHost123"}); "localhost", "1.kanyezone.appspot.com", "UnknownHost123"});
List<String> normalizedHosts = NetUtils.normalizeHostNames(hosts); List<String> normalizedHosts = NetUtils.normalizeHostNames(hosts);
// when ipaddress is normalized, same address is expected in return // when ipaddress is normalized, same address is expected in return
assertEquals(normalizedHosts.get(0), hosts.get(0)); assertEquals(normalizedHosts.get(0), hosts.get(0));