fix(waf): correct invalid curl flags in coraza integration test
- Replace 'curl -q -O-' with 'curl -s' (valid silent mode flag) - Remove redundant fallback since only one curl call is needed - Fixes httpbin connectivity check failure in WAF tests
This commit is contained in:
@@ -160,7 +160,7 @@ docker run -d --name coraza-backend --network containers_default kennethreitz/ht
|
||||
echo "Waiting for httpbin backend to be ready..."
|
||||
for i in {1..20}; do
|
||||
# Check if container is running and has network connectivity
|
||||
if docker exec charon-debug sh -c 'curl -q -O- http://coraza-backend/get 2>/dev/null || curl -s http://coraza-backend/get' >/dev/null 2>&1; then
|
||||
if docker exec charon-debug sh -c 'curl -s http://coraza-backend/get' >/dev/null 2>&1; then
|
||||
echo "✓ httpbin backend is ready"
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user