Skip to content

Commit 1cd6844

Browse files
FrankYang0529mjsax
authored andcommitted
HOTFIX: ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup (apache#18549)
Reviewers: Ismael Juma <[email protected]>, Gaurav Narula <[email protected]>, TengYao Chi <[email protected]>
1 parent 7828da0 commit 1cd6844

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java

+14-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,20 @@ public void testParseAndValidateAddressesWithReverseLookup() {
6363
assertFalse(validatedAddresses.isEmpty(), "Unexpected addresses " + validatedAddresses);
6464
List<String> validatedHostNames = validatedAddresses.stream().map(InetSocketAddress::getHostName)
6565
.collect(Collectors.toList());
66-
List<String> expectedHostNames = asList("93.184.215.14", "2606:2800:21f:cb07:6820:80da:af6b:8b2c");
66+
List<String> expectedHostNames = List.of(
67+
"a23-215-0-136.deploy.static.akamaitechnologies.com",
68+
"a23-192-228-84.deploy.static.akamaitechnologies.com",
69+
"a23-215-0-138.deploy.static.akamaitechnologies.com",
70+
"a96-7-128-175.deploy.static.akamaitechnologies.com",
71+
"a23-192-228-80.deploy.static.akamaitechnologies.com",
72+
"a96-7-128-198.deploy.static.akamaitechnologies.com",
73+
"2600:1406:3a00:21:0:0:173e:2e66",
74+
"2600:1408:ec00:36:0:0:1736:7f31",
75+
"2600:1406:3a00:21:0:0:173e:2e65",
76+
"2600:1408:ec00:36:0:0:1736:7f24",
77+
"2600:1406:bc00:53:0:0:b81e:94ce",
78+
"2600:1406:bc00:53:0:0:b81e:94c8"
79+
);
6780
assertTrue(expectedHostNames.containsAll(validatedHostNames), "Unexpected addresses " + validatedHostNames);
6881
validatedAddresses.forEach(address -> assertEquals(10000, address.getPort()));
6982
}

0 commit comments

Comments
 (0)