Fix stale auth test blocking CI pipeline #67
No reviewers
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!67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "66-fix-stale-auth-test-blocking-ci-pipeline"
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?
Summary
The admin dashboard was made intentionally public for tryout day (commit
7b3e455), butTestAdminDashboard::test_requires_authwas never updated. It still expected 401/403 but got 200, blocking every CI pipeline since #42 (~40 pipelines). This single stale test prevented image builds from reaching Harbor, so ArgoCD Image Updater had nothing to deploy.Changes
tests/test_tryouts.py-- Renamedtest_requires_authtotest_admin_dashboard_is_public, updated assertion fromstatus_code in (401, 403)tostatus_code == 200, added docstring clarifying the intentional behavior.Test Plan
pytest tests/test_tryouts.py -k test_admin_dashboard_is_public -v-- passespytest-- all 137 tests passruff check .-- passesruff format --check .-- passesReview Checklist
tests/test_tryouts.pymodified (no route changes)test_requires_authtests (assign-numbers, checkin, uncheckin) left unchanged -- those endpoints still require authRelated
plan-2026-03-08-tryout-prep(traceability)Closes #66