diff --git a/tests.sh b/tests.sh index 86b8ca5..e4e8ea0 100755 --- a/tests.sh +++ b/tests.sh @@ -126,7 +126,7 @@ curl \ $HOST:$PORT/api/token/verify &> api_token_verify_no_data_test.log sleep 0.1 res=$(cat api_token_verify_no_data_test.log) -if [[ "$res" == *'{"error":"must have token"}'* ]]; then +if [[ "$res" == *'{"valid":false}'* ]]; then printf "[$GREEN OK $RESET]\n" success=$(($success+1)) else @@ -143,7 +143,7 @@ curl \ $HOST:$PORT/api/token/verify &> api_token_verify_wrong_token_test.log sleep 0.1 res=$(cat api_token_verify_wrong_token_test.log) -if [[ "$res" == *'{"error":"invalid token"}'* ]]; then +if [[ "$res" == *'{"valid":false}'* ]]; then printf "[$GREEN OK $RESET]\n" success=$(($success+1)) else @@ -160,7 +160,7 @@ curl \ $HOST:$PORT/api/token/verify &> api_token_verify_wrong_json_test.log sleep 0.1 res=$(cat api_token_verify_wrong_json_test.log) -if [[ "$res" == *'error'* ]]; then +if [[ "$res" == *'{"valid":false}'* ]]; then printf "[$GREEN OK $RESET]\n" success=$(($success+1)) else