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): cover model registration persistence in /model/info (#33996)
Yassin Kortam71131190ecf8
diff --git a/tests/e2e/management/test_management_e2e.py b/tests/e2e/management/test_management_e2e.pyindex fe6c4ef0e22..bfffa70b081 100644--- a/tests/e2e/management/test_management_e2e.py+++ b/tests/e2e/management/test_management_e2e.py@@ -423,6 +423,23 @@ class TestModelRoutes:"after /model/update",)+ @pytest.mark.covers("mgmt.model.add.persists")+ def test_new_persists_to_model_info_catalog(+ self, client: ManagementClient, resources: ResourceManager+ ) -> None:+ model_name = f"e2e-mgmt-model-{unique_marker()}"+ model_id = client.proxy.create_model(+ model_name,+ LiteLLMParamsBody(model="openai/gpt-5.5", api_key="e2e-dummy-key"),+ )+ resources.defer(lambda: client.proxy.delete_model(model_id))++ cataloged = [entry.model_name for entry in client.proxy.model_info()]+ assert model_name in cataloged, (+ f"/model/info does not list {model_name!r} after /model/new; registration did not persist "+ f"into the routing catalog: {cataloged}"+ )+def _assert_route_forbidden(route: str, outcome: StreamingResponse) -> None:assert outcome.status_code == 403, (