Add unit test for startRetrospectiveRun controller method (prevention guard) #694

Open
opened 2026-07-22 10:32:16 +02:00 by chris · 0 comments
Owner

Context\nPR #693 fixed a bug where POST /api/discovery/domains/{domainKey}/retrospective-runs returned HTTP 201 with an empty body instead of the run view. This caused silent frontend state corruption.\n\n## Task\nAdd a unit test for the controller method that verifies:\n- Response body contains the full (not empty)\n- HTTP status is 201\n- Response fields match the created run\n\n## Acceptance Criteria\n- [ ] Unit test exists and passes\n- [ ] Test covers the empty-body regression scenario specifically\n- [ ] Test follows existing controller test patterns in the codebase\n\n## References\n- Hotfix PR: #693\n- Changelog: v1.21.22

## Context\nPR #693 fixed a bug where POST /api/discovery/domains/{domainKey}/retrospective-runs returned HTTP 201 with an empty body instead of the run view. This caused silent frontend state corruption.\n\n## Task\nAdd a unit test for the controller method that verifies:\n- Response body contains the full (not empty)\n- HTTP status is 201\n- Response fields match the created run\n\n## Acceptance Criteria\n- [ ] Unit test exists and passes\n- [ ] Test covers the empty-body regression scenario specifically\n- [ ] Test follows existing controller test patterns in the codebase\n\n## References\n- Hotfix PR: #693\n- Changelog: v1.21.22
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories#694
No description provided.