-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
- Loading branch information
Showing
4 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Feature: Debug Task | ||
As an implementer of the workflow DSL | ||
I want to ensure that debug tasks can be executed within the workflow | ||
So that my implementation conforms to the expected behaviour | ||
|
||
# Tests Debug with literal constant | ||
Scenario: Debug with literal constant | ||
Given a workflow with definition: | ||
"""yaml | ||
document: | ||
dsl: 1.0.0-alpha1 | ||
namespace: default | ||
name: debug | ||
do: | ||
printMessage: | ||
debug: Hello world! | ||
""" | ||
And given the workflow input is: | ||
"""yaml | ||
""" | ||
When the workflow is executed | ||
Then the workflow should complete | ||
|
||
# Tests Debug with expression | ||
Scenario: Debug with expression | ||
Given a workflow with definition: | ||
"""yaml | ||
document: | ||
dsl: 1.0.0-alpha1 | ||
namespace: default | ||
name: debug | ||
do: | ||
printMessage: | ||
debug: ${Hello \(.name)!} | ||
""" | ||
And given the workflow input is: | ||
"""yaml | ||
name: John | ||
""" | ||
When the workflow is executed | ||
Then the workflow should complete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters