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

Create instance with specific version #244

Closed
Tracked by #139
ChrisKujawa opened this issue Nov 22, 2022 · 0 comments · Fixed by #246
Closed
Tracked by #139

Create instance with specific version #244

ChrisKujawa opened this issue Nov 22, 2022 · 0 comments · Fixed by #246

Comments

@ChrisKujawa
Copy link
Member

We extend the verify steady-state command to specify a version, such that we can create an instance with a version. If version is specified no deployment should be deployed.

This allows to execute the deployment distribution experiment.

ChrisKujawa added a commit that referenced this issue Nov 22, 2022
Allows creating a process instance for a specific version and BPMN
process id via the verify steady-state command.
This is useful for the deployment distribution command.

Furthermore, I also created the first version of a Zeebe Fake client, in
order to intercept values which are set on the client requests. This
allows us to create more unit tests where we can verify whether the
right properties and values are set.

Added some new tests for the process instance creation via version and
BPMN process id.

closes #244

-----


**Example:**

Deploy model
```sh
$ ./zbchaos deploy process -v
Connecting to zell-chaos
Running experiment in self-managed environment.
Successfully created port forwarding tunnel
Deploy 10 versions of different type of models.
Deployed [2/10] versions.
Deployed [4/10] versions.
Deployed [6/10] versions.
Deployed [8/10] versions.
Deployed [10/10] versions.
Deployed different process models of different types and versions to zeebe!

```

Non-verbose: Start instance for a specific version
```
$ ./zbchaos verify steady-state --version 10 --bpmnProcessId multiVersion
The steady-state was successfully verified!
```

We can see in operate:


![execution](https://user-images.githubusercontent.com/2758593/203263224-a24a9f70-c956-4718-8fe7-50cde4c7610b.png)


Verbose: Start instance for a specific version

```sh
$ ./zbchaos verify steady-state --version 10 --bpmnProcessId multiVersion -v
Connecting to zell-chaos
Running experiment in self-managed environment.
Successfully created port forwarding tunnel
Create process instance with BPMN process ID multiVersion and version 10 [variables: '', awaitResult: false]
Created process instance with key 4503599627370497 on partition 2, required partition 1.
Created process instance with key 6755399441055745 on partition 3, required partition 1.
Created process instance with key 2251799813685299 on partition 1, required partition 1.
The steady-state was successfully verified!
```



![execution2](https://user-images.githubusercontent.com/2758593/203263565-cd7822cf-d0e0-4976-95f5-aecc41bd7cdf.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant