test: allow disabling rate limiting for e2e runs
The full Playwright suite authenticates ~100 times in a few minutes, far over the login endpoint's 5/minute limit, so most specs failed at the beforeEach login with 429s. Add an OIDC_OP_RATE_LIMIT_ENABLED setting (default True) wired to the slowapi limiter's enabled flag, and set it to false in tests/e2e/run.sh. Production behavior is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bcfe3a2a15
commit
2fc2bdcabb
3 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ echo "Starting Porchlight on port ${PORT}..."
|
|||
echo " DB: ${OIDC_OP_SQLITE_PATH}"
|
||||
OIDC_OP_ISSUER="${TARGET_URL}" \
|
||||
OIDC_OP_DEBUG=true \
|
||||
OIDC_OP_RATE_LIMIT_ENABLED=false \
|
||||
uv run --directory "$PROJECT_ROOT" \
|
||||
uvicorn porchlight.app:create_app \
|
||||
--factory --host 127.0.0.1 --port "$PORT" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue