[camel] branch master updated: CAMEL-12705: Added unit test to reproduce the issue, ignored until fixed.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: CAMEL-12705: Added unit test to reproduce the issue, ignored until fixed.

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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c920c8  CAMEL-12705: Added unit test to reproduce the issue, ignored until fixed.
5c920c8 is described below

commit 5c920c813b71b86ba5be8e6766fe0e032cbf5917
Author: Claus Ibsen <[hidden email]>
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);