19 lines
638 B
Bash
Executable File
19 lines
638 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the full tool smoke test the way Open WebUI reaches the suite:
|
|
# from openwebui_default, through the gateway, with a real bearer token.
|
|
#
|
|
# ./tests/smoke.sh normal
|
|
# ./tests/smoke.sh -v also print the first lines of each response
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
set -a; . ./.env; set +a
|
|
|
|
exec docker run --rm \
|
|
--network openwebui_default \
|
|
-e OWUITOOLS_AUTH_TOKEN="${OWUITOOLS_AUTH_TOKEN}" \
|
|
-e OWUITOOLS_MAX_RESPONSE_CHARS="${OWUITOOLS_MAX_RESPONSE_CHARS:-12000}" \
|
|
-v "$(pwd)/tests/smoke.py:/smoke.py:ro" \
|
|
--entrypoint python \
|
|
local/owuitools-api:latest /smoke.py "$@"
|