Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub workflow sync test fix. #190

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added in other tests
  • Loading branch information
manan164 committed Jun 20, 2024
commit e2000cfca766c93432c64e27e74b1e7bef5d7bf3
Original file line number Diff line number Diff line change
@@ -107,6 +107,12 @@ class HierarchicalForkJoinSubworkflowRerunSpec extends AbstractSpecification {
tasks.size() == 4
}

when: "poll and complete the integration_task_2 task"
pollAndCompleteTask = workflowTestUtil.pollAndCompleteTask('integration_task_2', 'task2.integration.worker', ['op': 'task2.done'])

then: "verify that the 'integration_task_2' was polled and acknowledged"
verifyPolledAndAcknowledgedTask(pollAndCompleteTask)

and: "verify that the mid-level workflow is RUNNING, and first task is in SCHEDULED state"
midLevelWorkflowId = rootWorkflowInstance.tasks[1].subWorkflowId
with(workflowExecutionService.getExecutionStatus(midLevelWorkflowId, true)) {
Original file line number Diff line number Diff line change
@@ -110,6 +110,12 @@ class HierarchicalForkJoinSubworkflowRestartSpec extends AbstractSpecification {
tasks.size() == 4
}

when: "poll and complete the integration_task_2 task"
pollAndCompleteTask = workflowTestUtil.pollAndCompleteTask('integration_task_2', 'task2.integration.worker', ['op': 'task2.done'])

then: "verify that the 'integration_task_2' was polled and acknowledged"
verifyPolledAndAcknowledgedTask(pollAndCompleteTask)

and: "verify that the mid-level workflow is RUNNING, and first task is in SCHEDULED state"
midLevelWorkflowId = rootWorkflowInstance.tasks[1].subWorkflowId
with(workflowExecutionService.getExecutionStatus(midLevelWorkflowId, true)) {