summaryrefslogtreecommitdiffstats
path: root/integration-tests/catalog-be-resources/ready-probe.sh
blob: bb730ab272d3fc2d47d43700ecd01268afffa37a (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
health_check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/sdc2/rest/healthCheck)

if [ "$health_check_http_code" -eq 200 ]; then
  exit 0
else
  echo "Health check http status: $health_check_http_code"
  exit 1
fi