fix tests
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
This commit is contained in:
1 parent
b986ab6b0d
commit
d6409140f1
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user