fix tests
This commit is contained in:
parent
fb78c61450
commit
4751e6f5d4
1 changed files with 2 additions and 2 deletions
4
tests.sh
4
tests.sh
|
@ -16,11 +16,11 @@ touch tests/file
|
|||
curl -X POST -H "token: $TOKEN" -F "file=@tests/file" $URL/upload | jq
|
||||
|
||||
echo -e ${GREEN}Test: leerer Upload${ENDCOLOR}
|
||||
curl -X POST -H "token: $TOKEN" $URL/upload
|
||||
curl -X POST -H "token: $TOKEN" $URL/upload | jq
|
||||
|
||||
echo -e ${GREEN}Test: fehlerhafter Dateiname Upload${ENDCOLOR}
|
||||
touch ./tests/'hallo\welt.txt'
|
||||
curl -X POST -H "token: $TOKEN" -F "file=@tests/hallo\welt.txt" $URL/upload
|
||||
curl -X POST -H "token: $TOKEN" -F "file=@tests/hallo\welt.txt" $URL/upload | jq
|
||||
|
||||
echo -e ${GREEN}Test: List Files${ENDCOLOR}
|
||||
curl -H "token: $TOKEN" $URL/list | jq
|
||||
|
|
Reference in a new issue