API.md ships in the image; GET /api/docs/approved serves it behind api:docs

Moved to app/API.md so the build context carries it. The console renders
it at /leaders/api. tests/smoke_admin.py 162 -> 164.
This commit is contained in:
2026-09-04 20:26:45 -04:00
parent 38bedaea88
commit d1dfa6df90
4 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
"""Drive every admin API route over real HTTP. NOT a unit test: it needs a running
throwaway site on a COPY of the database (container name sw-test on arrstack_arr_net,
reachable at the URL in /tmp/apitest/base) and sessions for four accounts in
/tmp/apitest/setup.json - see projects/scout-website/state.md for the recipe.
/tmp/apitest/setup.json - see projects/scout-website/state.md for the recipe. Output goes to app/API.md so it ships in the image and the console can render it.
Calendar checks write 2036 probes to the REAL Radicale store and delete them.
Writes results to /tmp/apitest/results.json; API.md is generated from that plus the
Writes results to /tmp/apitest/results.json; app/API.md is generated from that plus the
router registry. 123 checks on 2026-09-04, all passing."""
import json, urllib.request, urllib.error, urllib.parse, hashlib, struct, zlib, base64, datetime, sys