File tree Expand file tree Collapse file tree 13 files changed +101
-21
lines changed
Cases/Conformance/Features Expand file tree Collapse file tree 13 files changed +101
-21
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright © 2024-Present The Synapse Authors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"),
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ using Xunit . Gherkin . Quick ;
15
+
16
+ namespace Synapse . UnitTests . Cases . Conformance . Features ;
17
+
18
+ [ FeatureFile ( "./Cases/Conformance/Features/branch.feature" ) ]
19
+ public class BranchFeatureTests
20
+ : ConformanceTestsBase
21
+ {
22
+
23
+
24
+
25
+ }
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 competing concurrent sub tasks
7
+ Scenario : Fork Task With Competing Concurrent Sub Tasks
8
+ Given a workflow with definition:
9
+ """yaml
10
+ document:
11
+ dsl: '1.0.0-alpha5'
12
+ namespace: default
13
+ name: fork
14
+ version: '1.0.0'
15
+ do:
16
+ - branchWithCompete:
17
+ fork:
18
+ compete: true
19
+ branches:
20
+ - setRed:
21
+ set:
22
+ colors: ${ .colors + ["red"] }
23
+ - setGreen:
24
+ set:
25
+ colors: ${ .colors + ["green"] }
26
+ - setBlue:
27
+ set:
28
+ colors: ${ .colors + ["blue"] }
29
+ """
30
+ When the workflow is executed
31
+ Then the workflow should complete
32
+ And the workflow output should have a 'colors' property containing 1 items
Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ Feature: Call Task
11
11
Given a workflow with definition:
12
12
"""yaml
13
13
document:
14
- dsl: 1.0.0-alpha1
14
+ dsl: ' 1.0.0-alpha5'
15
15
namespace: default
16
16
name: http-call-with-content-output
17
+ version: '1.0.0'
17
18
do:
18
19
- findPet:
19
20
call: http
@@ -39,9 +40,10 @@ Feature: Call Task
39
40
Given a workflow with definition:
40
41
"""yaml
41
42
document:
42
- dsl: 1.0.0-alpha1
43
+ dsl: ' 1.0.0-alpha5'
43
44
namespace: default
44
45
name: http-call-with-response-output
46
+ version: '1.0.0'
45
47
do:
46
48
- getPet:
47
49
call: http
@@ -66,9 +68,10 @@ Feature: Call Task
66
68
Given a workflow with definition:
67
69
"""yaml
68
70
document:
69
- dsl: 1.0.0-alpha1
71
+ dsl: ' 1.0.0-alpha5'
70
72
namespace: default
71
73
name: http-call-with-basic-auth
74
+ version: '1.0.0'
72
75
do:
73
76
- login:
74
77
call: http
@@ -95,9 +98,10 @@ Feature: Call Task
95
98
Given a workflow with definition:
96
99
"""yaml
97
100
document:
98
- dsl: 1.0.0-alpha1
101
+ dsl: ' 1.0.0-alpha5'
99
102
namespace: default
100
103
name: openapi-call-with-content-output
104
+ version: '1.0.0'
101
105
do:
102
106
- findPet:
103
107
call: openapi
@@ -123,9 +127,10 @@ Feature: Call Task
123
127
Given a workflow with definition:
124
128
"""yaml
125
129
document:
126
- dsl: 1.0.0-alpha1
130
+ dsl: ' 1.0.0-alpha5'
127
131
namespace: default
128
132
name: openapi-call-with-response-output
133
+ version: '1.0.0'
129
134
do:
130
135
- getPet:
131
136
call: openapi
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ Feature: Data Flow
8
8
Given a workflow with definition:
9
9
"""yaml
10
10
document:
11
- dsl: 1.0.0-alpha1
11
+ dsl: ' 1.0.0-alpha5'
12
12
namespace: default
13
13
name: output-filtering
14
+ version: '1.0.0'
14
15
do:
15
16
- setPlayerId:
16
17
input:
@@ -35,9 +36,10 @@ Feature: Data Flow
35
36
Given a workflow with definition:
36
37
"""yaml
37
38
document:
38
- dsl: 1.0.0-alpha1
39
+ dsl: ' 1.0.0-alpha5'
39
40
namespace: default
40
41
name: output-filtering
42
+ version: '1.0.0'
41
43
do:
42
44
- getPet:
43
45
call: http
@@ -63,9 +65,10 @@ Feature: Data Flow
63
65
Given a workflow with definition:
64
66
"""yaml
65
67
document:
66
- dsl: 1.0.0-alpha1
68
+ dsl: ' 1.0.0-alpha5'
67
69
namespace: default
68
70
name: non-object-output
71
+ version: '1.0.0'
69
72
do:
70
73
- getPetById1:
71
74
call: http
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ Feature: Composite Task
8
8
Given a workflow with definition:
9
9
"""yaml
10
10
document:
11
- dsl: 1.0.0-alpha1
11
+ dsl: ' 1.0.0-alpha5'
12
12
namespace: default
13
13
name: do
14
+ version: '1.0.0'
14
15
do:
15
16
- compositeExample:
16
17
do:
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ Feature: Emit Task
8
8
Given a workflow with definition:
9
9
"""yaml
10
10
document:
11
- dsl: 1.0.0-alpha1
11
+ dsl: ' 1.0.0-alpha5'
12
12
namespace: default
13
13
name: emit
14
+ version: '1.0.0'
14
15
do:
15
16
- emitEvent:
16
17
emit:
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ Feature: Flow Directive
7
7
Given a workflow with definition:
8
8
"""yaml
9
9
document:
10
- dsl: 1.0.0-alpha1
10
+ dsl: ' 1.0.0-alpha5'
11
11
namespace: default
12
12
name: implicit-sequence
13
+ version: '1.0.0'
13
14
do:
14
15
- setRed:
15
16
set:
@@ -34,9 +35,10 @@ Feature: Flow Directive
34
35
Given a workflow with definition:
35
36
"""yaml
36
37
document:
37
- dsl: 1.0.0-alpha1
38
+ dsl: ' 1.0.0-alpha5'
38
39
namespace: default
39
40
name: explicit-sequence
41
+ version: '1.0.0'
40
42
do:
41
43
- setRed:
42
44
set:
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ Feature: For Task
10
10
Given a workflow with definition:
11
11
"""yaml
12
12
document:
13
- dsl: 1.0.0-alpha1
13
+ dsl: ' 1.0.0-alpha5'
14
14
namespace: default
15
15
name: for
16
+ version: '1.0.0'
16
17
do:
17
18
- loopColors:
18
19
for:
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ Feature: Raise Task
7
7
Given a workflow with definition:
8
8
"""yaml
9
9
document:
10
- dsl: 1.0.0-alpha1
10
+ dsl: ' 1.0.0-alpha5'
11
11
namespace: default
12
12
name: raise-custom-error
13
+ version: '1.0.0'
13
14
do:
14
15
- raiseError:
15
16
raise:
@@ -25,4 +26,4 @@ Feature: Raise Task
25
26
type: https://serverlessworkflow.io/errors/types/compliance
26
27
title: Compliance Error
27
28
instance: /do/0/raiseError
28
- """
29
+ """
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ Feature: Set Task
8
8
Given a workflow with definition:
9
9
"""yaml
10
10
document:
11
- dsl: 1.0.0-alpha1
11
+ dsl: ' 1.0.0-alpha5'
12
12
namespace: default
13
13
name: set
14
+ version: '1.0.0'
14
15
do:
15
16
- setShape:
16
17
set:
You can’t perform that action at this time.
0 commit comments