mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
print first 500 chars of response for db verification
This commit is contained in:
parent
1c9d51a5fb
commit
618e82cb4e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue