Skip to content

Commit

Permalink
Fix validation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganeshrockz committed Dec 6, 2023
1 parent 8d4cec8 commit 46aec30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions examples/dev-server-ec2/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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++))
Expand Down
9 changes: 6 additions & 3 deletions examples/dev-server-fargate/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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++))
Expand Down
9 changes: 6 additions & 3 deletions examples/mesh-gateways/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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++))
Expand Down

0 comments on commit 46aec30

Please sign in to comment.