Make test scripts verbose about HTTP codes and headers

This commit is contained in:
Lars Jellema committed 2022-04-21 23:01:35 +02:00
1 parent 52647759cc
commit 73c9ad61a7
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
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
+1 -1
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
+1 -1
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