fix: replace curl with wget for backend readiness checks in integration scripts

This commit is contained in:
GitHub Actions
2026-03-14 13:17:06 +00:00
parent 042c5ec6e5
commit 58b087bc63
4 changed files with 4 additions and 4 deletions

View File

@@ -212,7 +212,7 @@ echo ""
log_info "Waiting for httpbin backend to be ready..."
for i in {1..45}; do
if docker exec ${CONTAINER_NAME} sh -c "curl -sf http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
if docker exec ${CONTAINER_NAME} sh -c "wget -qO /dev/null http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
log_info "httpbin backend is ready"
break
fi

View File

@@ -160,7 +160,7 @@ docker run -d --name coraza-backend --network containers_default mccutchen/go-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 -s http://coraza-backend/get' >/dev/null 2>&1; then
if docker exec charon-debug sh -c 'wget -qO /dev/null http://coraza-backend/get' >/dev/null 2>&1; then
echo "✓ httpbin backend is ready"
break
fi

View File

@@ -188,7 +188,7 @@ docker run -d --name ${BACKEND_CONTAINER} --network containers_default mccutchen
echo "Waiting for httpbin backend to be ready..."
for i in {1..45}; do
if docker exec ${CONTAINER_NAME} sh -c "curl -sf http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
if docker exec ${CONTAINER_NAME} sh -c "wget -qO /dev/null http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
echo "✓ httpbin backend is ready"
break
fi

View File

@@ -203,7 +203,7 @@ echo ""
log_info "Waiting for httpbin backend to be ready..."
for i in {1..45}; do
if docker exec ${CONTAINER_NAME} sh -c "curl -sf http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
if docker exec ${CONTAINER_NAME} sh -c "wget -qO /dev/null http://${BACKEND_CONTAINER}/get" >/dev/null 2>&1; then
log_info "httpbin backend is ready"
break
fi