fix: allow private AI base URLs in ai_proxy integration test (#8715)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-04-03 21:26:24 -04:00
committed by GitHub
parent 7c3bd67639
commit 2b865c0694

View File

@@ -37,6 +37,8 @@ async fn start_mock_ai_api() -> u16 {
#[sqlx::test(migrations = "../migrations", fixtures("base"))]
async fn test_ai_proxy_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
// Allow the mock AI API on 127.0.0.1 to pass the SSRF check
std::env::set_var("ALLOW_PRIVATE_AI_BASE_URLS", "true");
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();