Add curl test for healthcheck.

This commit is contained in:
Kavin 2022-03-29 09:45:48 +01:00
parent d4c6383d55
commit 554b5e8fe8
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

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") 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 HOST=127.0.0.1:8080
# Healthcheck Test
curl ${CURLOPTS[@]} $HOST/healthcheck || exit 1
# Version Test # Version Test
curl ${CURLOPTS[@]} $HOST/version || exit 1 curl ${CURLOPTS[@]} $HOST/version || exit 1