add docs + test
This commit is contained in:
parent
b91cf9fc50
commit
bd78ec158b
2 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,7 @@ curl -X DELETE -H "token: myuploadtoken" http://docker10.host.lan:5040/delete/fi
|
||||||
#### input
|
#### input
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -H "token: myuploadtoken" http://docker10.host.lan:5040/health
|
curl http://docker10.host.lan:5040/health
|
||||||
```
|
```
|
||||||
|
|
||||||
#### output
|
#### output
|
||||||
|
|
3
tests.sh
3
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}
|
echo -e ${GREEN}Test: lösche nicht vorhandene Datei${ENDCOLOR}
|
||||||
curl -X DELETE -H "token: $TOKEN" $URL/delete/file2 | jq
|
curl -X DELETE -H "token: $TOKEN" $URL/delete/file2 | jq
|
||||||
|
|
||||||
|
echo -e ${GREEN}Test: check health${ENDCOLOR}
|
||||||
|
curl $URL/health
|
||||||
|
|
||||||
rm -rf tests
|
rm -rf tests
|
||||||
|
|
Reference in a new issue