test: DELIBERATE BREAK, expected red, reverted next (#8295)
release / go (push) Failing after 2m31s
release / web (push) Successful in 1m36s
release / govulncheck (push) Successful in 21s
release / integration (push) Failing after 2m51s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 1m42s
release / android (push) Canceled after 2m13s
release / go (push) Failing after 2m31s
release / web (push) Successful in 1m36s
release / govulncheck (push) Successful in 21s
release / integration (push) Failing after 2m51s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 1m42s
release / android (push) Canceled after 2m13s
Proves the reviewed tests can fail. Each break, and the test that must fail: - admin routes lose RequireAdmin -> TestMountedRoutes_RequireASessionAndAdminRoutesAnAdmin - the second account signs up without an invite -> TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn - the last admin can be demoted -> TestAdminUsers_DemotingStopsAtTheLastAdmin - an unknown user gets a different refusal -> TestHandleLogin_AWrongPasswordAndAnUnknownUserLookAlike - email is stored as typed -> TestUpdateProfile_ChangesOnlyTheFieldsSent - the scan walks hidden folders -> TestEnumerate_LeavesHiddenFilesAndFoldersOut Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ func Mount(r chi.Router, pool *pgxpool.Pool, logger *slog.Logger, events *playev
|
||||
authed.Get("/client/apk", h.handleClientAPK)
|
||||
|
||||
authed.Route("/admin", func(admin chi.Router) {
|
||||
admin.Use(auth.RequireAdmin())
|
||||
_ = auth.RequireAdmin // DELIBERATE BREAK: admin routes open to any session
|
||||
// The queues that wait on an admin, for the rail and the
|
||||
// Overview.
|
||||
admin.Get("/summary", h.handleGetAdminSummary)
|
||||
|
||||
Reference in New Issue
Block a user