You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/04/11 08:14:42 UTC
[camel] 30/41: 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.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3ace0e0151162e1b45a6a0d924aadd53b6dbbbb0
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
davsclaus@apache.org.