-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Conformance): updated conformance tests [skip hint][skip ci]
Signed-off-by: Jean-Baptiste Bianchi <jb.bianchi@neuroglia.io>
- Loading branch information
Showing
13 changed files
with
101 additions
and
21 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
tests/Synapse.UnitTests/Cases/Conformance/Features/BranchFeatureTests.cs
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,25 @@ | ||
// Copyright © 2024-Present The Synapse Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"), | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using Xunit.Gherkin.Quick; | ||
|
||
namespace Synapse.UnitTests.Cases.Conformance.Features; | ||
|
||
[FeatureFile("./Cases/Conformance/Features/branch.feature")] | ||
public class BranchFeatureTests | ||
: ConformanceTestsBase | ||
{ | ||
|
||
|
||
|
||
} |
32 changes: 32 additions & 0 deletions
32
tests/Synapse.UnitTests/Cases/Conformance/Features/branch.feature
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,32 @@ | ||
Feature: Composite Task | ||
As an implementer of the workflow DSL | ||
I want to ensure that composite tasks can be executed within the workflow | ||
So that my implementation conforms to the expected behavior | ||
|
||
# Tests composite tasks With competing concurrent sub tasks | ||
Scenario: Fork Task With Competing Concurrent Sub Tasks | ||
Given a workflow with definition: | ||
"""yaml | ||
document: | ||
dsl: '1.0.0-alpha5' | ||
namespace: default | ||
name: fork | ||
version: '1.0.0' | ||
do: | ||
- branchWithCompete: | ||
fork: | ||
compete: true | ||
branches: | ||
- setRed: | ||
set: | ||
colors: ${ .colors + ["red"] } | ||
- setGreen: | ||
set: | ||
colors: ${ .colors + ["green"] } | ||
- setBlue: | ||
set: | ||
colors: ${ .colors + ["blue"] } | ||
""" | ||
When the workflow is executed | ||
Then the workflow should complete | ||
And the workflow output should have a 'colors' property containing 1 items |
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
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
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
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