From 554b5e8fe872fe1474676bee7b9ea94ebc8d6c3c Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:45:48 +0100 Subject: [PATCH] Add curl test for healthcheck. --- testing/api-test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/api-test.sh b/testing/api-test.sh index 67b947f..045bf11 100755 --- a/testing/api-test.sh +++ b/testing/api-test.sh @@ -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