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