You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ig...@apache.org on 2018/03/29 12:50:23 UTC

[camel] branch boot2ga updated: CAMEL-12396: Use $simple{} instead to avoid spring to evaluate Camel simple expression in the property

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

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


The following commit(s) were added to refs/heads/boot2ga by this push:
     new a8fec5e  CAMEL-12396: Use $simple{} instead to avoid spring to evaluate Camel simple expression in the property
a8fec5e is described below

commit a8fec5eb1c0c06c9cdce0b8dddc090b7b0102c60
Author: Tomohisa Igarashi <tm...@gmail.com>
AuthorDate: Thu Mar 29 08:45:33 2018 -0400

    CAMEL-12396: Use $simple{} instead to avoid spring to evaluate Camel simple expression in the property
---
 .../spring/boot/cloud/CamelCloudServiceCallSimpleExpressionTest.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/cloud/CamelCloudServiceCallSimpleExpressionTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/cloud/CamelCloudServiceCallSimpleExpressionTest.java
index 39bda54..76ec1a3 100644
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/cloud/CamelCloudServiceCallSimpleExpressionTest.java
+++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/cloud/CamelCloudServiceCallSimpleExpressionTest.java
@@ -47,7 +47,6 @@ import org.springframework.test.context.junit4.SpringRunner;
         CamelCloudServiceCallSimpleExpressionTest.SpringBootPropertySourceConfig.class
     }
 )
-@Ignore("Does not work")
 public class CamelCloudServiceCallSimpleExpressionTest {
     @Autowired
     private ProducerTemplate template;
@@ -92,7 +91,7 @@ public class CamelCloudServiceCallSimpleExpressionTest {
         prop.put("service.name", "custom-svc-list");
         prop.put("camel.cloud.load-balancer.enabled", false);
         prop.put("camel.cloud.service-call.component", "jetty");
-        prop.put("camel.cloud.service-call.expression", "${header.CamelServiceCallScheme}:http://${header.CamelServiceCallServiceHost}:${header.CamelServiceCallServicePort}/hello");
+        prop.put("camel.cloud.service-call.expression", "$simple{header.CamelServiceCallScheme}:http://$simple{header.CamelServiceCallServiceHost}:$simple{header.CamelServiceCallServicePort}/hello");
         prop.put("camel.cloud.service-call.expression-language", "simple");
         prop.put("camel.cloud.service-discovery.services[custom-svc-list]", SpringBootPropertyUtil.getDiscoveryServices());
         prop.put("camel.cloud.service-filter.blacklist[custom-svc-list]", SpringBootPropertyUtil.getServiceFilterBlacklist());

-- 
To stop receiving notification emails like this one, please contact
igarashitm@apache.org.