camunda / camunda/api-test-generator
request-validation: skip setup endpoints (createAdminUser) by default — only valid on fresh cluster
@jwulf is already working on this.
Since Jun 4, 2026.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 3
- Avg merge
- 13h 41m
- Merged PRs (30d)
- 23
Description
Problem
POST /v2/setup/user (createAdminUser) only accepts traffic on a fresh cluster. Once the cluster has been initialised, all calls return 403 FORBIDDEN, including the negative-test calls that send malformed bodies. The negative tests therefore fail not because of server misbehaviour but because the endpoint is no longer accepting requests.
3 failing tests in the current suite:
createAdminUser - Missing password→ 403createAdminUser - Missing username→ 403createAdminUser - Missing combo username,password→ 403
Proposal
Emit setup-endpoint scenarios behind an opt-in flag (e.g. --include-setup / INCLUDE_SETUP=1), default off. Setup endpoints have a one-shot semantic that doesn't mesh with the "run repeatedly against the same cluster" testing model the rest of the suite assumes.
Detection: any operation tagged with the setup tag (or path matching /v2/setup/**) is excluded by default.
Acceptance criteria
- Default emission contains zero
createAdminUser(and any other/v2/setup/**) scenarios. --include-setupre-enables them.- README documents the flag and the "fresh cluster only" requirement when set.
References
- Triage: #119 (Class 5, 3 failures)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.