Skip to content

Commit 7e22106

Browse files
committed
fix(test): adds Origin header to WAF API tests, reduces parallelism
API paths require Origin header matching the deployment domain per WAF rule. Adds Origin header for /api/* assertions and a new test confirming requests without Origin are blocked (403). Reduces parallel concurrency from j10 to j1 to avoid Cloudflare rate-limit connection drops.
1 parent c174338 commit 7e22106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/waf-smoke-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TESTS=(
104104
# --- Run in parallel (::: passes array elements directly, avoiding stdin quoting issues) ---
105105
TOTAL=${#TESTS[@]}
106106

107-
OUTPUT=$(parallel --will-cite -k -j10 --timeout 15 run_spec ::: "${TESTS[@]}") || true
107+
OUTPUT=$(parallel --will-cite -k -j1 --timeout 15 run_spec ::: "${TESTS[@]}") || true
108108

109109
# Detect infrastructure failure (parallel crashed, no tests ran)
110110
if [[ -z "$OUTPUT" ]]; then

0 commit comments

Comments
 (0)