Skip to content

Commit

Permalink
improved wording of healthz endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 19, 2024
1 parent 68abcd4 commit e1c3bf2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server/src/test/resources/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ echo "get-block.sh executed successfully."

# 5. Call the endpoints /health/liveness and /health/readiness
SERVER_URL="http://localhost:8080"
LIVENESS_URL="/healthz/liveness"
READINESS_URL="/healthz/readiness"
LIVENESS_ENDPOINT="/healthz/liveness"
READINESS_ENDPOINT="/healthz/readiness"

if ! curl -f $SERVER_URL$LIVENESS_URL; then
echo "$LIVENESS_URL failed."
if ! curl -f $SERVER_URL$LIVENESS_ENDPOINT; then
echo "$LIVENESS_ENDPOINT failed."
shutdown
exit 1
fi
echo "$LIVENESS_URL endpoint is healthy."
echo "$LIVENESS_ENDPOINT endpoint is healthy."

if ! curl -f $SERVER_URL$READINESS_URL; then
echo "$READINESS_URL endpoint failed."
if ! curl -f $SERVER_URL$READINESS_ENDPOINT; then
echo "$READINESS_ENDPOINT endpoint failed."
shutdown
exit 1
fi
echo "$READINESS_URL endpoint is ready."
echo "$READINESS_ENDPOINT endpoint is ready."

# 6. Shut everything down
shutdown
Expand Down

0 comments on commit e1c3bf2

Please sign in to comment.