Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tests
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
tests
Commits
9261ba74
Commit
9261ba74
authored
2 years ago
by
Valery Kalashnikov
Browse files
Options
Downloads
Patches
Plain Diff
Add task list execution story
parent
9fac25ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Trusted info import export
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
features/executeTaskList.feature
+56
-0
56 additions, 0 deletions
features/executeTaskList.feature
with
56 additions
and
0 deletions
features/executeTaskList.feature
0 → 100644
+
56
−
0
View file @
9261ba74
As
user
I
want to execute the list of tasks
So
I
am able to bring the consistensy to running multiple asyncronous tasks
Scenario
:
Sequential task list processing
Given
long running policy is uploaded to the system
And
the list of tasks is defined
And
the list of tasks contains the group of tasks
And
the group of tasks contains task A and task B
When
I evaluate a policy
And
the task list specified as an input
Then
I get successful response
And
the response contains the taskListObject
And
the taskListObject contains the taskList id
And
the taskListObject contains the taskIDs of all the tasks
Scenario
:
Handling the error for the sequential task list execution
Given
task list is configured
And
the list of tasks contains the group of tasks
And
the group of tasks contains task A, task B and task C
And
the group of tasks is configured for running one by one
And
the task list has executed
And
task B failed
When
I request the result of task list execution
Then
I get the response
And
the status of task list execution marked as failed
And
the status of task A is marked as successful
And
the status of task B is marked as failed
And
the status of task C is marked as failed
Scenario
:
Handling the error for the parallel task list execution
Given
task list is configured
And
the list of tasks contains the group of tasks
And
the group of tasks contains task A, task B and task C
And
the group of tasks is configured for running in parallel
And
the task list has executed
And
task B failed
When
I request the result of task list execution
Then
I get the response
And
the status of task list execution marked as failed
And
the status of task A is marked as successful
And
the status of task B is marked as failed
And
the status of task C is marked as successful
Scenario
:
Handling the error for the mixed task list execution
Given
task list is configured
And
the list of tasks contains the group A and group B
And
the group A configured for running sequentially
And
the group B configured for running in parallel
And
the task list has executed
And
one of the tasks in a group B failed
When
I request the result of the task list execution
Then
I get the response
And
the status of task list execution marked as failed
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment