Add check for database session in healthcheck. (#232)

* Add check for database session in healthcheck.

* Add curl test for healthcheck.
This commit is contained in:
Kavin 2022-03-29 09:49:42 +01:00 committed by GitHub
parent 6376401d98
commit 5b6dc2b097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,9 @@
CURLOPTS=(-i -s -S -o /dev/null -f -w "%{http_code}\tTime:\t%{time_starttransfer}\t%{url_effective}\n")
HOST=127.0.0.1:8080
# Healthcheck Test
curl ${CURLOPTS[@]} $HOST/healthcheck || exit 1
# Version Test
curl ${CURLOPTS[@]} $HOST/version || exit 1