Skip to content

Commit 51f786b

Browse files
test: split ctk features
Signed-off-by: Matthias Pichler <[email protected]>
1 parent c91754a commit 51f786b

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

ctk/features/composite.feature renamed to ctk/features/branch.feature

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff 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:

ctk/features/do.feature

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
"""

0 commit comments

Comments
 (0)