Skip to content

Commit

Permalink
[type:feat] support e2e contain in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
moremind committed Sep 19, 2023
1 parent 2fda37f commit a500afe
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ sh ${curPath}/healthcheck.sh h2

curl -S "http://localhost:31195/actuator/pluginData"

status=`curl "http://localhost:31195/actuator/pluginData"`
echo -e "curl $status"
admin_status=`curl -X GET "http://localhost:31095/actuator/health" -H "accept: */*"`
bootstrap_status=`curl -X GET "http://localhost:31195/actuator/health" -H "accept: */*"`

if [ $admin_status -eq 200 && $bootstrap_status -eq 200 ]; then
echo -e "Success to send request: $status"
echo -e "\n-------------------"
exit 0
fi
echo -e "Failed to send request from shenyu-bootstrap : $admin_status"
echo -e "Failed to send request from shenyu-bootstrap : $bootstrap_status"
echo -e "\n-------------------"
exit 1

0 comments on commit a500afe

Please sign in to comment.