This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.22.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 48f8778a350197cf20be6619ad06892a8f1a0271 Author: Claus Ibsen <[email protected]> AuthorDate: Thu Aug 2 10:47:07 2018 +0200 CAMEL-12705: Added unit test to reproduce the issue, ignored until fixed. --- .../java/org/apache/camel/catalog/CamelCatalogTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java b/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java index b5eb00a..f59b4fb 100644 --- a/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java +++ b/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java @@ -24,7 +24,9 @@ import java.util.Map; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.camel.runtimecatalog.RuntimeCamelCatalog; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -1180,6 +1182,17 @@ public class CamelCatalogTest { } @Test + @Ignore("CAMEL-12705") // TODO: Fix this bug + public void testNetty4Http4DynamicToIssue() throws Exception { + String uri = "netty4-http:http://10.192.1.10:8080/client/alerts/summary?throwExceptionOnFailure=false"; + Map<String, String> params = catalog.endpointProperties(uri); + params.remove("path"); + + String resolved = catalog.asEndpointUri("netty4-http", params, false); + assertEquals("netty4-http:http:10.192.1.10:8080", resolved); + } + + @Test public void testJSonSchemaHelper() throws Exception { String json = loadText(new FileInputStream("src/test/resources/org/foo/camel/dummy.json")); assertNotNull(json);
