You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With the Zeebe worker, I can use a reusable environment to reduce the test execution time.
In a specification, I can have test cases that define a complete-task for the same task but with different variables. Currently, it can happen that the task is completed with the variables of the previous test case.
To Reproduce
Run the following spec in a reusable environment (e.g. io.zeebe.bpmnspec.junit.BpmnSpecExtensionReuseEnvironmentTest)
resources:
- exclusive-gateway.bpmn
testCases:
- name: condition-flow
description: the condition is fulfilled
actions:
- action: create-instance
args:
bpmn_process_id: exclusive-gateway
workflow_instance_alias: wf-1
- action: complete-task
args:
job_type: a
variables: '{"x":8}'
verifications:
- verification: element-instance-state
args:
element_name: B
state: activated
workflow-instance: wf-1
- name: default-flow
description: take the default flow
actions:
- action: create-instance
args:
bpmn_process_id: exclusive-gateway
workflow_instance_alias: wf-2
- action: complete-task
args:
job_type: a
variables: '{"x":3}'
verifications:
- verification: element-instance-state
args:
element_name: C
state: activated
workflow-instance: wf-2
Expected behavior
The task worker from the previous test case is closed and doesn't influence the next test case.
Additional context
The text was updated successfully, but these errors were encountered:
* update to Zeebe 1.0.1
* update to ZeeQS 2.0.0
* rename workflow to process to align with Zeebe naming
* the tests for the reusable environment fail because of #82
Describe the bug
With the Zeebe worker, I can use a reusable environment to reduce the test execution time.
In a specification, I can have test cases that define a
complete-task
for the same task but with different variables. Currently, it can happen that the task is completed with the variables of the previous test case.To Reproduce
Run the following spec in a reusable environment (e.g.
io.zeebe.bpmnspec.junit.BpmnSpecExtensionReuseEnvironmentTest
)Expected behavior
The task worker from the previous test case is closed and doesn't influence the next test case.
Additional context
The text was updated successfully, but these errors were encountered: