print first 500 chars of response for db verification

This commit is contained in:
yuneng-jiang 2026-03-03 23:12:12 -08:00
parent 1c9d51a5fb
commit 618e82cb4e

View file

@ -80,12 +80,15 @@ jobs:
echo "Testing: GET /user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480"
http_code=$(curl --max-time 4 -s \
-o /dev/null \
-o /tmp/response.json \
-w "%{http_code}" \
-H "Authorization: Bearer sk-1234" \
"http://localhost:4000/user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480") \
|| { echo "FAILED: request timed out after 4s"; docker logs litellm-test; exit 1; }
echo "Response (first 500 chars):"
head -c 500 /tmp/response.json
if [ "$http_code" -ne 200 ]; then
echo "FAILED: expected HTTP 200, got $http_code"
docker logs litellm-test