This commit is contained in:
+9
-4
@@ -70,10 +70,15 @@ if payload.get("status") != "ok":
|
||||
PY
|
||||
|
||||
echo "[selftest] verify search"
|
||||
curl -fsS \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"query":"city rain","platforms":["envato","artgrid","google video"]}' \
|
||||
"http://127.0.0.1:${APP_PORT}/api/search" >"${TMP_DIR}/search.json"
|
||||
for _ in $(seq 1 5); do
|
||||
if curl -fsS \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"query":"city rain","platforms":["envato","artgrid","google video"]}' \
|
||||
"http://127.0.0.1:${APP_PORT}/api/search" >"${TMP_DIR}/search.json"; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
python3 - "${TMP_DIR}/search.json" <<'PY'
|
||||
import json
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user