camunda / camunda/api-test-generator

request-validation: skip setup endpoints (createAdminUser) by default — only valid on fresh cluster

Open
#121 1 comment 0 reactions 1 assignee View on GitHub

@jwulf is already working on this.

Since Jun 4, 2026.

OCA
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 → 403
  • createAdminUser - Missing username → 403
  • createAdminUser - 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-setup re-enables them.
  • README documents the flag and the "fresh cluster only" requirement when set.

References

  • Triage: #119 (Class 5, 3 failures)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.