test(blackbox): version-controlled runner + real auth happy-path #55
No reviewers
Labels
No labels
backend
bug
completed
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
in-progress
invalid
performance
phase-1
Phase1
Phase2
Phase3
planning
question
refactor
security
test
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Kalle/ATM!55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/blackbox-auth-happy-path"
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?
Plan
Deliver the Release Hardening "Blackbox suite ≥ 8 tests, all green on testing" item — ship a repo-local, version-controlled blackbox runner and strengthen auth coverage from "endpoint alive" to a real end-to-end happy path.
Outcome
scripts/blackbox_test.pyto the repo — a version-controlled copy of the canonical atm-development skill runner, so CI can exercise the same suite that gates releases. Previously the runner existed only inside the skill, so the repo had no version-controlled end-to-end test runner.t_auth_demo_login_flow: a real end-to-end auth happy path using the seeded demo accounts:POST /api/auth/tauri-login(demo) →200 {ok, user.id}GET /api/auth/profile(Bearer) →200own profileGET /api/auth/profile(bad Bearer) →401authz boundaryPOST /api/auth/tauri-login(wrong pw) →401Impact on release goals
[x]but only unit-tested) — is now end-to-end blackbox-verified on the testing deployment.GET /api/lessonsfailure tracked separately by PR #53 (lessons-catalog-seed). This iteration did not weaken, skip, or delete that test.Blackbox
python3 scripts/blackbox_test.py --target testing→ 11/12 green200, profile200, bad-bearer401, wrong-pw401.GET /api/lessons → non-empty list(pre-existing, tracked by PR #53 — a separate in-flight iteration).Six-perspectives check
Risk
Minimal. Additive only (new Python file + new test functions). No production code, no route, no schema changed. The demo-login probes are read-only/stateless (demo accounts are seeded; no writes). Cannot affect the running deployment. Synced the skill's canonical runner to match so future runs stay consistent.
Checklist
devtest:,docs:)[ ]→[~])View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.