From bd78ec158b07c7f61e282ce0920c67a161f696ae Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 14 Apr 2023 12:20:04 +0200 Subject: [PATCH] add docs + test --- README.md | 2 +- tests.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec6fac3..72f439b 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ curl -X DELETE -H "token: myuploadtoken" http://docker10.host.lan:5040/delete/fi #### input ```bash -curl -H "token: myuploadtoken" http://docker10.host.lan:5040/health +curl http://docker10.host.lan:5040/health ``` #### output diff --git a/tests.sh b/tests.sh index d29d5e3..4b8535c 100644 --- a/tests.sh +++ b/tests.sh @@ -38,4 +38,7 @@ curl -X DELETE -H "token: $TOKEN" $URL/delete/file | jq echo -e ${GREEN}Test: lösche nicht vorhandene Datei${ENDCOLOR} curl -X DELETE -H "token: $TOKEN" $URL/delete/file2 | jq +echo -e ${GREEN}Test: check health${ENDCOLOR} +curl $URL/health + rm -rf tests