20 lines
1.0 KiB
Bash
Executable File
20 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# Fast E2E: parallel curl
|
|
PASS=0; FAIL=0; TOTAL=10
|
|
for pg in agents-archi.html wevia-meeting-rooms.html director-center.html l99-brain.html enterprise-model.html security-dashboard.html admin-saas.html ops-center.html wevia-master.html login.html; do
|
|
curl -sf -o /dev/null -w "$pg:%{http_code}\n" -L --max-time 2 "https://weval-consulting.com/$pg" 2>/dev/null &
|
|
done | while read LINE; do
|
|
CODE=$(echo "$LINE" | cut -d: -f2)
|
|
if [ "$CODE" = "200" ] || [ "$CODE" = "302" ]; then
|
|
PASS=$((PASS+1))
|
|
fi
|
|
done
|
|
wait
|
|
# Simple sequential fallback (reliable)
|
|
P=0; F=0; R=""
|
|
for pg in agents-archi.html wevia-meeting-rooms.html director-center.html l99-brain.html enterprise-model.html security-dashboard.html admin-saas.html ops-center.html wevia-master.html login.html; do
|
|
CODE=$(curl -sf -o /dev/null -w "%{http_code}" -L --max-time 1 "https://weval-consulting.com/$pg" 2>/dev/null)
|
|
if [ "$CODE" = "200" ] || [ "$CODE" = "302" ]; then P=$((P+1)); else F=$((F+1)); R="$R FAIL:$pg"; fi
|
|
done
|
|
echo "E2E: $P/$TOTAL PASS ($F fail)$R"
|