tests/run-smoke.sh starts an isolated copy of the stack (compose project
yolkbook-smoke, nginx on 127.0.0.1:18056, throwaway credentials), optionally
loads a mysqldump backup, and runs tests/smoke.py against it. The stack and
its volume are removed afterwards.
The test covers static pages, CSP and login rate limiting through nginx;
login and lockout; CRUD and validation for eggs, flock, feed and other
purchases; stats; admin user management and impersonation; password and
timezone changes; logout; and rejection of tampered and alg=none tokens.
The first run with a given label of "baseline" snapshots every user's list
and stats output; later runs must match it exactly, and must still accept a
token issued during the baseline run. State is kept in ~/.cache/yolkbook-smoke
(outside the repo, since snapshots contain real data).
Co-Authored-By: Claude Opus 5.5 <[email protected]>