diff --git a/examples/dev-server-ec2/validate.sh b/examples/dev-server-ec2/validate.sh index a5804e17..49ee1b5f 100755 --- a/examples/dev-server-ec2/validate.sh +++ b/examples/dev-server-ec2/validate.sh @@ -50,9 +50,12 @@ while [[ $count -le 20 ]]; do echo -n "." response=$(curl -s ${MESH_CLIENT_APP_LB_ADDR} 2> /dev/null) if echo "$response" | grep -q 'Hello World'; then - echo "$response" - success=true - break + echo $response + responseCode=$(echo $response | jq -rc '.code') + if "$responseCode" == "200"; then + success=true + break + fi fi sleep 20 ((count++)) diff --git a/examples/dev-server-fargate/validate.sh b/examples/dev-server-fargate/validate.sh index 5307ff2a..f3e7476b 100755 --- a/examples/dev-server-fargate/validate.sh +++ b/examples/dev-server-fargate/validate.sh @@ -50,9 +50,12 @@ while [[ $count -le 20 ]]; do echo -n "." response=$(curl -s ${MESH_CLIENT_APP_LB_ADDR} 2> /dev/null) if echo "$response" | grep -q 'Hello World'; then - echo "$response" - success=true - break + echo $response + responseCode=$(echo $response | jq -rc '.code') + if "$responseCode" == "200"; then + success=true + break + fi fi sleep 20 ((count++)) diff --git a/examples/mesh-gateways/validate.sh b/examples/mesh-gateways/validate.sh index c8cb6c23..46c12f11 100755 --- a/examples/mesh-gateways/validate.sh +++ b/examples/mesh-gateways/validate.sh @@ -61,9 +61,12 @@ while [[ $count -le 20 ]]; do echo -n "." response=$(curl -s ${MESH_CLIENT_APP_LB_ADDR} 2> /dev/null) if echo "$response" | grep -q 'Hello World'; then - echo "$response" - success=true - break + echo $response + responseCode=$(echo $response | jq -rc '.code') + if "$responseCode" == "200"; then + success=true + break + fi fi sleep 20 ((count++))