camunda / camunda/api-test-generator

Missing projectVersionKey resourceFixture for Hub /project-versions (15 nightly failures)

Open Beginner friendly
#585 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

nightly-api-fix
Dominant language
TypeScript
Stars
0
Forks
3
Avg merge
13h 41m
Merged PRs (30d)
23

Description

Problem

Nightly run #6598 has 15 failures in generated/camunda-hub/request-validation/secured/projectversions-validation-api-tests.spec.ts, all on updateProjectVersion: expected 400, got 404.

Root cause

Not a camunda-hub bug. updateProjectVersion (HubV2ProjectVersionController, commit 98ba1e5d3e) resolves/authorizes the {projectVersionKey} path variable before body parsing — same as every other Hub V2 update endpoint (e.g. updateWorkspace). workspaceKey has a resourceFixtures entry pointing to a real workspace the runner creates before tests, so its negative-body tests ride a valid resource into body validation (400). projectVersionKey has no fixture entry, so the generator falls back to filler ('x'/'1'), which correctly 404s before body validation ever runs.

Fix

Add a projectVersionKeyRV_FIXTURE_PROJECT_VERSION_KEY entry to configs/camunda-hub/request-validation.json's resourceFixtures map, and mint the fixture in scripts/e2e/run-hub.sh's make_fixtures(), following the same pattern as RV_FIXTURE_VERSION_KEY.

Failing tests (15)

All in generated/camunda-hub/request-validation/secured/projectversions-validation-api-tests.spec.ts, operationId updateProjectVersion.

🤖 Generated with Claude Code

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.

Research direction

Update configs/camunda-hub/request-validation.json and scripts/e2e/run-hub.sh, following the existing RV_FIXTURE_VERSION_KEY resource fixture pattern. Start by inspecting the resourceFixtures map and make_fixtures(); then run generated/camunda-hub/request-validation/secured/projectversions-validation-api-tests.spec.ts for updateProjectVersion. Done means the 15 cases receive the expected 400 responses instead of 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, typescript
Domain
testing, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.