Bug: 9 jersey checkout tests failing on main — opt_out removed but tests not updated #310
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#310
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Discovered during validation of API contract fixes (#280-#284, #286). Blocks deployment of 6 merged PRs. Regression from PR #265 (remove opt-out from jersey ordering options).
Repo
forgejo_admin/basketball-apiWhat Broke
PR #265 removed
opt_outas a valid jersey option, but 9 tests across 3 test files still pass"option": "opt_out"in checkout requests. The endpoint now returns 422 (Unprocessable Entity) for this invalid option, causing test failures. All Woodpecker pipelines on main fail at the test step, blocking kustomize tag updates and ArgoCD deployment.770 tests pass, 9 fail, 23 skipped. The 9 failures are:
Repro Steps
pytest tests/on current main"option": "opt_out"which is no longer a valid jersey optionExpected Behavior
Tests should use valid jersey options (e.g.
"reversible"or"standard"). The opt_out tests that test authorization/player_id logic should still test that logic but with a valid option.Environment
File Targets
Files to modify:
tests/test_checkout.py— 3 tests: change"option": "opt_out"to a valid option (e.g."reversible")tests/test_dual_auth.py— 3 tests: same changetests/test_jersey.py— 3 tests: same changeFiles NOT to touch:
src/basketball_api/routes/jersey.py— the opt_out removal was intentionalsrc/basketball_api/routes/checkout.py— no changes neededAcceptance Criteria
Test Expectations
pytest tests/test_checkout.py tests/test_dual_auth.py tests/test_jersey.py -vConstraints
Checklist
Related
project-westside-basketballScope Review: NEEDS_REFINEMENT
Review note:
review-760-2026-04-03Issue template is well-written with accurate file targets and testable AC, but this ticket is a duplicate of 3 existing board items — one of which (#733) is already in_progress.
Issues found:
Recommendation: Close this issue as duplicate. Let #733 remain the single tracking item for this fix.