kpatelatwork commented on a change in pull request #10530: URL: https://github.com/apache/kafka/pull/10530#discussion_r613415919
########## File path: connect/runtime/src/test/java/org/apache/kafka/connect/runtime/rest/RestServerTest.java ########## @@ -185,6 +188,36 @@ public void testAdvertisedUri() { Assert.assertEquals("http://plaintext-localhost:4761/", server.advertisedUrl().toString()); } + @Test + public void testValidateUriHost() { + Map<String, String> configMap = new HashMap<>(baseWorkerProps()); + configMap.put(WorkerConfig.LISTENERS_CONFIG, "http://localhost:8080,https://localhost:8443"); + DistributedConfig config = new DistributedConfig(configMap); + + server = new RestServer(config); Review comment: @C0urante I made it static and I Agree it made the testing clean. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org