mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
Online documentation at /docs/ for authors and administrators: built into dist, nginx auth_request (check-docs), editor and admin links, Docker/server_update integration
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,9 @@ check_stack() { # nom curl-args... : vérifications communes une fois la pile d
|
||||
[[ "$(c -I "${base}/vendor/pyodide/pyodide.asm.wasm" | tr -d '\r' | grep -ci 'content-type: application/wasm')" == 1 ]] || fail "${name} : type MIME wasm"
|
||||
code_loc="$(c -o /dev/null -w '%{http_code} %{redirect_url}' "${base}/author.html")"
|
||||
[[ "${code_loc}" == "302 "*"/api/auth/login/?next=/author.html" ]] || fail "${name} : author.html doit renvoyer vers la connexion (reçu : ${code_loc})"
|
||||
docs_loc="$(c -o /dev/null -w '%{http_code} %{redirect_url}' "${base}/docs/")"
|
||||
[[ "${docs_loc}" == "302 "*"/api/auth/login/?next=/docs/" ]] || fail "${name} : /docs/ doit exiger une connexion (reçu : ${docs_loc})"
|
||||
[[ "$(c -o /dev/null -w '%{http_code}' "${base}/api/auth/check-docs/")" == 404 ]] || fail "${name} : /api/auth/check-docs/ doit rester interne"
|
||||
[[ "$(c -o /dev/null -w '%{http_code}' "${base}/api/auth/login/")" == 200 ]] || fail "${name} : page de connexion"
|
||||
[[ "$(c -o /dev/null -w '%{http_code}' "${base}/api/auth/check/")" == 404 ]] || fail "${name} : /api/auth/check/ doit rester interne"
|
||||
[[ "$(c -o /dev/null -w '%{http_code}' "${base}/api/static/admin/css/base.css")" == 200 ]] || fail "${name} : fichiers statiques de l'administration (volume partagé)"
|
||||
|
||||
Reference in New Issue
Block a user