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 2024/01/17 20:16:01 UTC
(camel) branch main updated: CAMEL-20339: Added unit test for saga eip problem in YAML DSL
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 7a3c4f86200 CAMEL-20339: Added unit test for saga eip problem in YAML DSL
7a3c4f86200 is described below
commit 7a3c4f86200856aff412ba6e4c5ff48028b3bdff
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jan 17 21:15:40 2024 +0100
CAMEL-20339: Added unit test for saga eip problem in YAML DSL
---
.../org/apache/camel/dsl/yaml/SagaTest.groovy | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/SagaTest.groovy b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/SagaTest.groovy
index 04564d43fa3..80a66d32320 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/SagaTest.groovy
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/SagaTest.groovy
@@ -94,6 +94,31 @@ class SagaTest extends YamlTestSupport {
simple: "${body}"
- to: "mock:result"
'''),
+ asResource('full-parameters-id', '''
+ - from:
+ uri: "direct:start"
+ steps:
+ - saga:
+ propagation: "MANDATORY"
+ completionMode: "MANUAL"
+ compensation:
+ uri: "direct"
+ parameters:
+ name: compensation
+ completion:
+ uri: "direct:completion"
+ steps:
+ - to: "direct:something"
+ option:
+ - key: o1
+ simple: "${body}"
+ - key: o2
+ expression:
+ simple:
+ id: key2
+ expression: "${body}"
+ - to: "mock:result"
+ '''),
asResource('full-parameters-out-of-order)', '''
- from:
uri: "direct:start"