mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add curl test for healthcheck.
This commit is contained in:
parent
d4c6383d55
commit
554b5e8fe8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue