feat(aio): check resolution of external URLs in HEALTHCHECK

This commit is contained in:
Georgios Kalpakas 2017-02-27 11:38:22 +02:00 committed by Chuck Jazdzewski
parent 8a8d4fe24f
commit bc831ff4a4
1 changed files with 10 additions and 0 deletions

View File

@ -39,5 +39,15 @@ for o in ${origins[@]}; do
done
# Check resolution of external URLs
origins=(
https://google.com
)
for o in ${origins[@]}; do
curl --fail --silent $o > /dev/null
reportStatus "External URL '$o'"
done
# Exit
exit $exitCode