H6: seed-script voor de hero (ASF en SLP), docs/hero-module.md, rooktest voor Hero en de media-endpoint, productie-checklist

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 16:09:14 +01:00
co-authored by Claude Sonnet 5.5
parent 5559d459c3
commit 7ae05e3fc0
7 changed files with 328 additions and 3 deletions
+9 -2
View File
@@ -50,6 +50,13 @@ banner="$(status_of '/api/v1/offerings/banner')"
if [ "$banner" = "200" ] || [ "$banner" = "204" ]; then pass "public banner (/api/v1/offerings/banner -> $banner)"; else fail "public banner (-> $banner, expected 200 or 204)"; fi
expect_status /api/v1/offerings/all 401 "the administrator list is protected"
# The hero: 204 = no hero to show (the website keeps its own), 200 = there is one; the management routes are protected and
# the media endpoint answers a plain 404 for something that is not stored.
hero="$(status_of '/api/v1/hero')"
if [ "$hero" = "200" ] || [ "$hero" = "204" ]; then pass "public hero (/api/v1/hero -> $hero)"; else fail "public hero (-> $hero, expected 200 or 204)"; fi
expect_status /api/v1/hero/all 401 "the hero management read is protected"
expect_status /media/hero/0123456789abcdef/wide-960.webp 404 "media that is not stored is a plain 404"
# A test host is never indexed.
expect_header / X-Robots-Tag noindex "noindex on the website"
expect_body /robots.txt "Disallow: /" "robots.txt disallows everything"
@@ -75,11 +82,11 @@ fi
case "$profile" in
sls-test)
for m in Identity Availability Offerings Contact Master; do expect_module "$m"; done
for m in Identity Availability Offerings Contact Hero Master; do expect_module "$m"; done
expect_status /sitemap.xml 404 "no sitemap on a test host"
;;
asf-test)
for m in Identity Availability Offerings Contact; do expect_module "$m"; done
for m in Identity Availability Offerings Contact Hero; do expect_module "$m"; done
expect_no_module Master
# Prerendered website: an unknown path is a real 404 (an SPA would answer 200).
expect_status /smoke-test-path-that-does-not-exist 404 "unknown website path is a 404"