Files
pipu-music/tests/contract/schemathesis.sh
T
mrleo1nidandCursor 066ba24834
ci / api / api (push) Successful in 40s
ci / db / db (push) Successful in 1m3s
ci / contract / contract (сгенерированный код совпадает с openapi.yaml) (push) Failing after 1m48s
ci / docker / docker (образы собираются — их сервер собирает сам при обновлении) (push) Successful in 46s
ci / ts / ts (packages + web) (push) Failing after 4m57s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 5m7s
feat: finish the upload, playback, and test gaps from the docs
Quality upgrades, batch covers, staging preview, and resume after reload are in the queue. Loudness and crossfade work on web and Android, and the documented checks now have suites.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 09:37:53 +03:00

16 lines
601 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# Фаззинг ответов api по OpenAPI. Сервер уже запущен; публичные ручки без токена,
# остальные — с PIPU_API_TOKEN (Bearer).
set -eu
: "${PIPU_API_URL:?set PIPU_API_URL, for example http://127.0.0.1:8080}"
root=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)
auth=
if [ -n "${PIPU_API_TOKEN:-}" ]; then
auth="Authorization: Bearer ${PIPU_API_TOKEN}"
fi
exec schemathesis run "${root}/api/openapi.yaml" \
--url "$PIPU_API_URL" \
--checks all \
--max-examples "${PIPU_SCHEMA_EXAMPLES:-20}" \
${auth:+--header "$auth"}