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-k-runtime.git
The following commit(s) were added to refs/heads/master by this push:
new cd34b68 Add more EIPS to YAML DSL (#303)
cd34b68 is described below
commit cd34b680ad7cfaefbf80b0a7908b675a7d45bc5e
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Apr 17 11:06:06 2020 +0200
Add more EIPS to YAML DSL (#303)
---
.../camel/k/loader/yaml/parser/DoTryTest.groovy | 51 ++++++++--------------
1 file changed, 17 insertions(+), 34 deletions(-)
diff --git
a/camel-k-loader-yaml/camel-k-loader-yaml/src/test/groovy/org/apache/camel/k/loader/yaml/parser/DoTryTest.groovy
b/camel-k-loader-yaml/camel-k-loader-yaml/src/test/groovy/org/apache/camel/k/loader/yaml/parser/DoTryTest.groovy
index 0d2e8c9..fcd9c59 100644
---
a/camel-k-loader-yaml/camel-k-loader-yaml/src/test/groovy/org/apache/camel/k/loader/yaml/parser/DoTryTest.groovy
+++
b/camel-k-loader-yaml/camel-k-loader-yaml/src/test/groovy/org/apache/camel/k/loader/yaml/parser/DoTryTest.groovy
@@ -25,17 +25,14 @@ class DoTryTest extends TestSupport {
given:
def stepContext = stepContext('''
steps:
- - to:
- uri: "log:when-a"
- - to:
- uri: "log:when-b"
+ - to: "log:when-a"
+ - to: "log:when-b"
do-catch:
exceptions:
- "java.io.FileNotFoundException"
- "java.io.IOException"
steps:
- - to:
- uri: "log:io-error"
+ - to: "log:io-error"
''')
when:
def processor = new DoTryStepParser().toProcessor(stepContext)
@@ -53,10 +50,8 @@ class DoTryTest extends TestSupport {
given:
def stepContext = stepContext('''
steps:
- - to:
- uri: "log:when-a"
- - to:
- uri: "log:when-b"
+ - to: "log:when-a"
+ - to: "log:when-b"
do-catch:
exceptions:
- "java.io.FileNotFoundException"
@@ -64,8 +59,7 @@ class DoTryTest extends TestSupport {
when:
simple: "${body.size()} == 1"
steps:
- - to:
- uri: "log:io-error"
+ - to: "log:io-error"
''')
when:
def processor = new DoTryStepParser().toProcessor(stepContext)
@@ -83,10 +77,8 @@ class DoTryTest extends TestSupport {
given:
def stepContext = stepContext('''
steps:
- - to:
- uri: "log:when-a"
- - to:
- uri: "log:when-b"
+ - to: "log:when-a"
+ - to: "log:when-b"
do-catch:
exceptions:
- "java.io.FileNotFoundException"
@@ -94,12 +86,10 @@ class DoTryTest extends TestSupport {
when:
simple: "${body.size()} == 1"
steps:
- - to:
- uri: "log:io-error"
+ - to: "log:io-error"
do-finally:
steps:
- - to:
- uri: "log:finally"
+ - to: "log:finally"
''')
when:
def processor = new DoTryStepParser().toProcessor(stepContext)
@@ -117,21 +107,17 @@ class DoTryTest extends TestSupport {
given:
def stepContext = stepContext('''
steps:
- - to:
- uri: "log:when-a"
- - to:
- uri: "log:when-b"
+ - to: "log:when-a"
+ - to: "log:when-b"
do-catch:
exceptions:
- "java.io.FileNotFoundException"
- "java.io.IOException"
steps:
- - to:
- uri: "log:io-error"
+ - to: "log:io-error"
do-finally:
steps:
- - to:
- uri: "log:finally"
+ - to: "log:finally"
''')
when:
def processor = new DoTryStepParser().toProcessor(stepContext)
@@ -149,14 +135,11 @@ class DoTryTest extends TestSupport {
given:
def stepContext = stepContext('''
steps:
- - to:
- uri: "log:when-a"
- - to:
- uri: "log:when-b"
+ - to: "log:when-a"
+ - to: "log:when-b"
do-finally:
steps:
- - to:
- uri: "log:finally"
+ - to: "log:finally"
''')
when:
def processor = new DoTryStepParser().toProcessor(stepContext)