Skip to content
New issue

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

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

Already on GitHub? # to your account

Job workers don't stop in reusable Zeebe environment #82

Open
saig0 opened this issue Jul 9, 2021 · 0 comments
Open

Job workers don't stop in reusable Zeebe environment #82

saig0 opened this issue Jul 9, 2021 · 0 comments
Labels

Comments

@saig0
Copy link
Collaborator

saig0 commented Jul 9, 2021

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

@saig0 saig0 added bug Something isn't working scope/integration scope/zeebe labels Jul 9, 2021
saig0 added a commit that referenced this issue Jul 9, 2021
* the tests for the reusable environment fail because of #82
saig0 added a commit that referenced this issue Jul 9, 2021
* the tests for the reusable environment fail because of #82
saig0 added a commit that referenced this issue Jul 9, 2021
* 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant