feat: #2 impl an HTTPResponse + update tests

This commit is contained in:
2022-09-20 09:07:23 +00:00
parent 35cc483774
commit 2c7418f333
6 changed files with 147 additions and 46 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ do
echo "bad http status code : ${http_response}, expect 200"
exit 1
fi
if [ $(cat response.txt | jq -r '.[]') != "ok" ]
if [ "$(cat response.txt | jq -r '.token')" != "header.payload.signature" ]
then
echo "bad data returned, expect : ok"
exit 1