You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/01/04 09:45:17 UTC

[camel-quarkus] 02/04: Upgrade Yaml Routes to Yaml 3.15 style

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

jamesnetherton pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 625706a08ffc2cec1f4734a15943695831a19e61
Author: Zineb Bendhiba <be...@gmail.com>
AuthorDate: Thu Dec 23 15:04:58 2021 +0100

    Upgrade Yaml Routes to Yaml 3.15 style
---
 .../route-configurations/src/main/resources/yaml/routes.yaml  | 11 ++++++-----
 .../main-yaml/src/main/resources/routes/my-rests.yaml         |  9 +++++----
 .../main-yaml/src/main/resources/routes/my-routes.yaml        | 11 ++++++-----
 3 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/integration-test-groups/foundation/route-configurations/src/main/resources/yaml/routes.yaml b/integration-test-groups/foundation/route-configurations/src/main/resources/yaml/routes.yaml
index 6e5418f..fd4dc34 100644
--- a/integration-test-groups/foundation/route-configurations/src/main/resources/yaml/routes.yaml
+++ b/integration-test-groups/foundation/route-configurations/src/main/resources/yaml/routes.yaml
@@ -17,8 +17,9 @@
 
 - route:
     route-configuration-id: "xmlRouteConfiguration"
-    from: "direct:yamlRoute"
-    steps:
-      - throw-exception:
-          exception-type: "org.apache.camel.quarkus.core.it.routeconfigurations.RouteConfigurationsException"
-          message: "Intentional exception to trigger onException in xmlRouteConfiguration"
\ No newline at end of file
+    from:
+        uri: "direct:yamlRoute"
+        steps:
+          - throw-exception:
+              exception-type: "org.apache.camel.quarkus.core.it.routeconfigurations.RouteConfigurationsException"
+              message: "Intentional exception to trigger onException in xmlRouteConfiguration"
\ No newline at end of file
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"