Compare commits
1 Commits
master
..
7fa44d9c3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
7fa44d9c3d
|
@@ -3,8 +3,9 @@
|
|||||||
frankenphp
|
frankenphp
|
||||||
}
|
}
|
||||||
|
|
||||||
:8080 {
|
:80 {
|
||||||
root * /app/public
|
root * /app/public
|
||||||
encode zstd br gzip
|
encode zstd br gzip
|
||||||
|
php_server
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
||||||
+4
-11
@@ -58,17 +58,10 @@ done
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Test: GET / (HTML redirect)"
|
echo "Test: GET / (HTML redirect)"
|
||||||
# Use temp file to avoid pipefail/SIGPIPE issues
|
RESPONSE=$(curl -sf -D - "$BASE_URL/")
|
||||||
TMPDIR=$(mktemp -d)
|
STATUS=$(echo "$RESPONSE" | head -1 | grep -oP '\d{3}')
|
||||||
cleanup() {
|
CONTENT_TYPE=$(echo "$RESPONSE" | grep -i 'content-type' | tr -d '\r' | cut -d: -f2- | xargs)
|
||||||
docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true
|
BODY=$(echo "$RESPONSE" | sed -n '/^\r$/,$p' | tail -n +2)
|
||||||
rm -rf "$TMPDIR"
|
|
||||||
}
|
|
||||||
curl -sf -o "$TMPDIR/body" -D "$TMPDIR/headers" "$BASE_URL/"
|
|
||||||
STATUS=$(head -1 "$TMPDIR/headers" | grep -oP '\d{3}')
|
|
||||||
CONTENT_TYPE=$(grep -i 'content-type' "$TMPDIR/headers" | tr -d '\r' | cut -d: -f2- | xargs)
|
|
||||||
BODY=$(cat "$TMPDIR/body")
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
assert "HTTP status is 200" "200" "$STATUS"
|
assert "HTTP status is 200" "200" "$STATUS"
|
||||||
assert_match "Content-Type is text/html" "text/html" "$CONTENT_TYPE"
|
assert_match "Content-Type is text/html" "text/html" "$CONTENT_TYPE"
|
||||||
|
|||||||
Reference in New Issue
Block a user