From 3d54bebe06a3fad69aaf263b95a7c90e1d986ec6 Mon Sep 17 00:00:00 2001 From: miki3421 <42601846+miki3421@users.noreply.github.com> Date: Thu, 22 Oct 2026 12:20:19 +0200 Subject: [PATCH] Recognize both Static landing pages and reject HTTP errors --- tests/7-static.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/7-static.sh b/tests/7-static.sh index 3b63cf7..3deb533 100755 --- a/tests/7-static.sh +++ b/tests/7-static.sh @@ -61,7 +61,10 @@ kind) RES=false while [[ $N -lt 12 ]] do - if curl $STATIC_URL | grep " Welcome to Apache OpenServerless (incubating) static content distributor landing page!!!"; then + # Accept both landing-page templates, but reject HTTP errors and unrelated pages. + if PAGE=$(curl --fail --silent --show-error --connect-timeout 5 --max-time 15 "$STATIC_URL") && + printf '%s\n' "$PAGE" | grep -Fq 'Welcome to Apache OpenServerless' && + printf '%s\n' "$PAGE" | grep -Fiq 'static content distributor landing page'; then echo SUCCESS STATIC RES=true; break else