The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(e2e-ui): poll credential availability before Test Connect to deflake multi-instance runs
Yuneng Jiang88501a074d1a
diff --git a/tests/e2e/ui/tests/modelsPage/addModel.spec.ts b/tests/e2e/ui/tests/modelsPage/addModel.spec.tsindex a16040678f3..566d78549b2 100644--- a/tests/e2e/ui/tests/modelsPage/addModel.spec.ts+++ b/tests/e2e/ui/tests/modelsPage/addModel.spec.ts@@ -226,6 +226,32 @@ test.describe("Add Model", () => {});expect(createCred.ok(), `POST /credentials failed (${createCred.status()}): ${await createCred.text()}`).toBe(true);+ // Multi-instance stacks propagate a new credential to the probe-serving instance on a periodic sync+ await expect+ .poll(+ async () => {+ const probe = await page.request.post("/health/test_connection", {+ headers: auth,+ data: {+ litellm_params: {+ model: "openai/fake-gpt-4",+ custom_llm_provider: "openai",+ litellm_credential_name: credentialName,+ },+ model_info: {},+ mode: "chat",+ },+ });+ if (!probe.ok()) return false;+ return (await probe.json()).status === "success";+ },+ {+ message: `stored credential ${credentialName} never became usable for a connection test`,+ timeout: 60_000,+ },+ )+ .toBe(true);+try {await navigateToPage(page, Page.Models);await page.getByRole("tab", { name: "Add Model" }).click();