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 created key appearing in /key/list inventory (#34008)
Yassin Kortam583ddaf19958
diff --git a/tests/e2e/management/test_management_e2e.py b/tests/e2e/management/test_management_e2e.pyindex dae68ba786d..18bc384a879 100644--- a/tests/e2e/management/test_management_e2e.py+++ b/tests/e2e/management/test_management_e2e.py@@ -169,6 +169,24 @@ class TestKeyRoutes:_ = _poll(client, rejected, "deleted key was still accepted on chat (never rejected 401) at the deadline")+ @pytest.mark.covers("mgmt.key.list.happy_path")+ def test_created_key_appears_in_key_list_inventory(+ self, client: ManagementClient, resources: ResourceManager+ ) -> None:+ alias = f"e2e-mgmt-keylist-{unique_marker()}"+ assert client.key_alias_count(alias) == 0, (+ f"/key/list already reports a key under the unused alias {alias!r} before it is created"+ )++ _ = _generate_key(client, resources, KeyGenerateBody(key_alias=alias))++ def listed() -> bool | None:+ return True if client.key_alias_count(alias) == 1 else None++ _ = _poll(+ client, listed, f"created key with alias {alias!r} never appeared in /key/list before the deadline"+ )+@pytest.mark.covers("mgmt.key.block.persists")def test_block_persists_to_key_info(self, client: ManagementClient, resources: ResourceManager) -> None: