diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a5b8a40..2b3711d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -125,7 +125,7 @@ For an example see [test/golden_test.go](charts/zeebe-benchmark/test/golden_test If the complete manifest can be enabled by a toggle, we also write a golden file test. This test is part of `_test.go` file. The `` corresponds to the template filename we have in the sub-chart `templates` dir. For example, the prometheus [servicemonitor](charts/camunda-platform/templates/service-monitor.yaml) can be enabled by a toggle. This means we write a golden file test in [servicemonitor_test.go](charts/camunda-platform/test/servicemonitor_test.go). -In order to generate the golden files run `go.test-with-updated-golden-files` on the root level of the repository. This will add a new golden file in a `golden` sub-dir and run the corresponding test. The golden files should also be named related to the manifest. +In order to generate the golden files run `go.test-golden-updated` on the root level of the repository. This will add a new golden file in a `golden` sub-dir and run the corresponding test. The golden files should also be named related to the manifest. ##### Properties Test diff --git a/charts/zeebe-benchmark/templates/workers.yaml b/charts/zeebe-benchmark/templates/workers.yaml index 1a40311..ed62bf3 100644 --- a/charts/zeebe-benchmark/templates/workers.yaml +++ b/charts/zeebe-benchmark/templates/workers.yaml @@ -34,7 +34,11 @@ spec: -Dapp.worker.capacity={{ $worker.capacity }} {{- end }} -Dapp.worker.pollingDelay=1ms + {{- if $worker.completionDelay }} + -Dapp.worker.completionDelay={{ $worker.completionDelay }} + {{- else }} -Dapp.worker.completionDelay=50ms + {{- end }} -Dapp.worker.workerName={{ $workerName | quote }} {{- if $worker.jobType }} -Dapp.worker.jobType={{ $worker.jobType | quote }} @@ -42,9 +46,6 @@ spec: {{- if $worker.payloadPath }} -Dapp.worker.payloadPath={{ $worker.payloadPath | quote }} {{- end}} - {{- if $worker.completionDelay }} - -Dapp.worker.completionDelay={{ $worker.completionDelay }} - {{- end}} {{- if $worker.message }} -Dapp.worker.sendMessage=true -Dapp.worker.messageName={{ $worker.message.name | quote }} diff --git a/charts/zeebe-benchmark/test/golden/golden-credentials-workers.golden.yaml b/charts/zeebe-benchmark/test/golden/golden-credentials-workers.golden.yaml index 2576a93..a8907ee 100644 --- a/charts/zeebe-benchmark/test/golden/golden-credentials-workers.golden.yaml +++ b/charts/zeebe-benchmark/test/golden/golden-credentials-workers.golden.yaml @@ -33,7 +33,6 @@ spec: -Dapp.worker.workerName="benchmark" -Dapp.worker.jobType="benchmark-task" -Dapp.worker.payloadPath="bpmn/big_payload.json" - -Dapp.worker.completionDelay=50ms -XX:+HeapDumpOnOutOfMemoryError - name: LOG_LEVEL value: "WARN" diff --git a/charts/zeebe-benchmark/test/golden/golden-existing-credential-secret-workers.golden.yaml b/charts/zeebe-benchmark/test/golden/golden-existing-credential-secret-workers.golden.yaml index 4d61a54..ffc21d8 100644 --- a/charts/zeebe-benchmark/test/golden/golden-existing-credential-secret-workers.golden.yaml +++ b/charts/zeebe-benchmark/test/golden/golden-existing-credential-secret-workers.golden.yaml @@ -33,7 +33,6 @@ spec: -Dapp.worker.workerName="benchmark" -Dapp.worker.jobType="benchmark-task" -Dapp.worker.payloadPath="bpmn/big_payload.json" - -Dapp.worker.completionDelay=50ms -XX:+HeapDumpOnOutOfMemoryError - name: LOG_LEVEL value: "WARN" diff --git a/charts/zeebe-benchmark/test/golden/workers.golden.yaml b/charts/zeebe-benchmark/test/golden/workers.golden.yaml index ff753cf..2e71f18 100644 --- a/charts/zeebe-benchmark/test/golden/workers.golden.yaml +++ b/charts/zeebe-benchmark/test/golden/workers.golden.yaml @@ -33,7 +33,6 @@ spec: -Dapp.worker.workerName="benchmark" -Dapp.worker.jobType="benchmark-task" -Dapp.worker.payloadPath="bpmn/big_payload.json" - -Dapp.worker.completionDelay=50ms -XX:+HeapDumpOnOutOfMemoryError - name: LOG_LEVEL value: "WARN"