Make test scripts verbose about HTTP codes and headers

This commit is contained in:
Lars Jellema
2022-04-21 23:01:11 +02:00
parent 52647759cc
commit 73c9ad61a7
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
echo $JWT echo $JWT
curl -X GET -H "Authorization: Bearer ${JWT}" localhost:8000/api/gamenights curl -v -X GET -H "Authorization: Bearer ${JWT}" localhost:8000/api/gamenights

View File

@@ -1 +1 @@
curl -X POST -H "Content-Type: application/json" -d '{"username": "roflin", "password": "oreokoekje123"}' localhost:8000/api/login curl -v -X POST -H "Content-Type: application/json" -d '{"username": "roflin", "password": "oreokoekje123"}' localhost:8000/api/login

View File

@@ -1 +1 @@
curl -X POST -H "Content-Type: application/json" -d '{"username": "roflin", "email": "user@example.com", "password": "oreokoekje123", "password_repeat": "oreokoekje123"}' localhost:8000/api/register curl -v -X POST -H "Content-Type: application/json" -d '{"username": "roflin", "email": "user@example.com", "password": "oreokoekje123", "password_repeat": "oreokoekje123"}' localhost:8000/api/register