chore: Re-introduce CLI test (#7268)

This commit is contained in:
Oli Juhl
2024-05-08 11:11:06 +02:00
committed by GitHub
parent 0f60d1fe96
commit 948458a43d
3 changed files with 92 additions and 99 deletions

View File

@@ -5,7 +5,7 @@ status_code=$(curl \
-H "Content-Type: application/json"\
-d '{"email":"'$1'", "password":"'$2'"}'\
--write-out %{http_code}\
http://localhost:9000/admin/auth)
http://localhost:9000/auth/admin/emailpass)
if [[ "$status_code" -ne 200 ]] ; then
echo "Site status changed to $status_code"