This is an automated email from the ASF dual-hosted git repository.
zbendhiba pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push:
new 783142d Upgrade Yaml Routes to Yaml 3.15 style
783142d is described below
commit 783142d79b814b707c1f402234649c61db391639
Author: Zineb Bendhiba <[email protected]>
AuthorDate: Thu Dec 23 15:04:58 2021 +0100
Upgrade Yaml Routes to Yaml 3.15 style
---
.../main-yaml/src/main/resources/routes/my-rests.yaml | 9 +++++----
.../main-yaml/src/main/resources/routes/my-routes.yaml | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git
a/integration-tests/main-yaml/src/main/resources/routes/my-rests.yaml
b/integration-tests/main-yaml/src/main/resources/routes/my-rests.yaml
index b246556..fd1f1b6 100644
--- a/integration-tests/main-yaml/src/main/resources/routes/my-rests.yaml
+++ b/integration-tests/main-yaml/src/main/resources/routes/my-rests.yaml
@@ -22,7 +22,8 @@
to: "direct:rest"
- route:
id: "rest-route"
- from: "direct:rest"
- steps:
- - set-body:
- constant: "Hello World!!!"
+ from:
+ uri: "direct:rest"
+ steps:
+ - set-body:
+ constant: "Hello World!!!"
diff --git
a/integration-tests/main-yaml/src/main/resources/routes/my-routes.yaml
b/integration-tests/main-yaml/src/main/resources/routes/my-routes.yaml
index e6ae42f..d0a6f53 100644
--- a/integration-tests/main-yaml/src/main/resources/routes/my-routes.yaml
+++ b/integration-tests/main-yaml/src/main/resources/routes/my-routes.yaml
@@ -17,8 +17,9 @@
- route:
id: "my-yaml-route"
- from: "timer:from-xml?period=3000"
- steps:
- - set-body:
- constant: "Hello World!!!"
- - to: "log:from-yaml"
+ from:
+ uri: "timer:from-xml?period=3000"
+ steps:
+ - set-body:
+ constant: "Hello World!!!"
+ - to: "log:from-yaml"