File tree Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Original file line number Diff line number Diff line change @@ -3,41 +3,14 @@ Feature: Composite Task
33 I want to ensure that composite tasks can be executed within the workflow
44 So that my implementation conforms to the expected behavior
55
6- # Tests composite tasks with sequential sub tasks
7- Scenario : Composite Task With Sequential Sub Tasks
8- Given a workflow with definition:
9- """yaml
10- document:
11- dsl: 1.0.0-alpha1
12- namespace: default
13- name: composite-do
14- do:
15- - compositeExample:
16- do:
17- - setRed:
18- set:
19- colors: ${ .colors + ["red"] }
20- - setGreen:
21- set:
22- colors: ${ .colors + ["green"] }
23- - setBlue:
24- set:
25- colors: ${ .colors + ["blue"] }
26- """
27- When the workflow is executed
28- Then the workflow should complete with output:
29- """yaml
30- colors: [ red, green, blue ]
31- """
32-
336 # Tests composite tasks With competing concurrent sub tasks
34- Scenario : Composite Task With Competing Concurrent Sub Tasks
7+ Scenario : Fork Task With Competing Concurrent Sub Tasks
358 Given a workflow with definition:
369 """yaml
3710 document:
3811 dsl: 1.0.0-alpha1
3912 namespace: default
40- name: composite- fork
13+ name: fork
4114 do:
4215 - branchWithCompete:
4316 fork:
Original file line number Diff line number Diff line change 1+ Feature : Composite Task
2+ As an implementer of the workflow DSL
3+ I want to ensure that composite tasks can be executed within the workflow
4+ So that my implementation conforms to the expected behavior
5+
6+ # Tests composite tasks with sequential sub tasks
7+ Scenario : Task With Sequential Sub Tasks
8+ Given a workflow with definition:
9+ """yaml
10+ document:
11+ dsl: 1.0.0-alpha1
12+ namespace: default
13+ name: do
14+ do:
15+ - compositeExample:
16+ do:
17+ - setRed:
18+ set:
19+ colors: ${ .colors + ["red"] }
20+ - setGreen:
21+ set:
22+ colors: ${ .colors + ["green"] }
23+ - setBlue:
24+ set:
25+ colors: ${ .colors + ["blue"] }
26+ """
27+ When the workflow is executed
28+ Then the workflow should complete with output:
29+ """yaml
30+ colors: [ red, green, blue ]
31+ """
You can’t perform that action at this time.
0 commit comments