From d99b909f9fe5ef8e33d22370d863242a95132fc3 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Wed, 18 Nov 2026 19:30:50 +0100 Subject: [PATCH] Deployment check: the CMS host must offer Offerings and Hero (the site uses them) The old rule said Offerings must be off for ASF; since the packages feature the site needs it. The check was never run in CMS mode on ASF-test before. Co-Authored-By: Claude Sonnet 5.5 --- web/deploy/verify-deployment.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/deploy/verify-deployment.sh b/web/deploy/verify-deployment.sh index 0999bc0..a5c234d 100644 --- a/web/deploy/verify-deployment.sh +++ b/web/deploy/verify-deployment.sh @@ -11,7 +11,7 @@ # headers staan met de exacte waarde op elk antwoord (pagina, asset, # 301, 404, robots.txt), cachebeleid, alleen gzip (nooit br), een # procentgecodeerd pad blijft gecodeerd, en /admin, /health en -# /api/v1/System/capabilities (zonder Offerings) antwoorden. +# /api/v1/System/capabilities (met Offerings en Hero) antwoorden. set -euo pipefail if [ "$#" -lt 2 ] || [ "$#" -gt 4 ]; then @@ -272,7 +272,7 @@ if [ "$cms_mode" -eq 1 ]; then fail "POST /: status $status, verwacht 405" fi - # De CMS-routes: health, admin, API (zonder Offerings), onbekend API-pad + # De CMS-routes: health, admin, API (met Offerings en Hero), onbekend API-pad fetch /health if [ "$status" != "200" ]; then fail "/health: status $status, verwacht 200"; fi @@ -301,8 +301,13 @@ if [ "$cms_mode" -eq 1 ]; then fetch /api/v1/System/capabilities if [ "$status" != "200" ]; then fail "/api/v1/System/capabilities: status $status, verwacht 200" - elif grep -qi 'offerings' "$work/body"; then - fail "/api/v1/System/capabilities noemt Offerings; die module hoort voor ASF uit te staan" + else + # De site haalt pakketten, banners en de hero uit deze modules + for module in Offerings Hero; do + if ! grep -qi "\"$module\"" "$work/body"; then + fail "/api/v1/System/capabilities noemt $module niet; de site heeft die module nodig" + fi + done fi # Een onbekend API-pad is een API-404, nooit de website