This is an automated email from the ASF dual-hosted git repository.

divijv pushed a commit to branch 3.8
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.8 by this push:
     new 0b8369a9c5f HOTFIX: 
ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup (#18549)
0b8369a9c5f is described below

commit 0b8369a9c5fcae6289b85ee9f8aed8cc4396eac3
Author: PoAn Yang <pay...@apache.org>
AuthorDate: Wed Jan 15 23:09:03 2025 +0800

    HOTFIX: ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup 
(#18549)
    
    Reviewers: Ismael Juma <ism...@juma.me.uk>, Gaurav Narula 
<gaurav_naru...@apple.com>, TengYao Chi <kiting...@gmail.com>
---
 .../java/org/apache/kafka/clients/ClientUtilsTest.java    | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git 
a/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java 
b/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
index 76937059ce9..75deabc3697 100644
--- a/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
+++ b/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
@@ -61,7 +61,20 @@ public class ClientUtilsTest {
         assertFalse(validatedAddresses.isEmpty(), "Unexpected addresses " + 
validatedAddresses);
         List<String> validatedHostNames = 
validatedAddresses.stream().map(InetSocketAddress::getHostName)
                 .collect(Collectors.toList());
-        List<String> expectedHostNames = asList("93.184.215.14", 
"2606:2800:21f:cb07:6820:80da:af6b:8b2c");
+        List<String> expectedHostNames = List.of(
+            "a23-215-0-136.deploy.static.akamaitechnologies.com",
+            "a23-192-228-84.deploy.static.akamaitechnologies.com",
+            "a23-215-0-138.deploy.static.akamaitechnologies.com",
+            "a96-7-128-175.deploy.static.akamaitechnologies.com",
+            "a23-192-228-80.deploy.static.akamaitechnologies.com",
+            "a96-7-128-198.deploy.static.akamaitechnologies.com",
+            "2600:1406:3a00:21:0:0:173e:2e66",
+            "2600:1408:ec00:36:0:0:1736:7f31",
+            "2600:1406:3a00:21:0:0:173e:2e65",
+            "2600:1408:ec00:36:0:0:1736:7f24",
+            "2600:1406:bc00:53:0:0:b81e:94ce",
+            "2600:1406:bc00:53:0:0:b81e:94c8"
+        );
         assertTrue(expectedHostNames.containsAll(validatedHostNames), 
"Unexpected addresses " + validatedHostNames);
         validatedAddresses.forEach(address -> assertEquals(10000, 
address.getPort()));
     }

Reply via email to