File tree 2 files changed +33
-29
lines changed
2 files changed +33
-29
lines changed Original file line number Diff line number Diff line change @@ -3,41 +3,14 @@ Feature: Composite Task
3
3
I want to ensure that composite tasks can be executed within the workflow
4
4
So that my implementation conforms to the expected behavior
5
5
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
-
33
6
# 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
35
8
Given a workflow with definition:
36
9
"""yaml
37
10
document:
38
11
dsl: 1.0.0-alpha1
39
12
namespace: default
40
- name: composite- fork
13
+ name: fork
41
14
do:
42
15
- branchWithCompete:
43
16
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