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
TestIsAllowedToCallVectorStoreEndpoint
Ishaan Jaffer0a4e2a88e3d3
diff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py b/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.pyindex 1a287e95746..437b71535ba 100644--- a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py+++ b/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py@@ -351,6 +351,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:# Mock user API key with permissionsmock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {"allowed_vector_store_indexes": [{"index_name": "my-index", "index_permissions": ["read"]}@@ -387,6 +388,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:# Mock user API key with permissionsmock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {"allowed_vector_store_indexes": [{"index_name": "my-index", "index_permissions": ["write"]}@@ -423,6 +425,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:# Mock user API key with only read permissionsmock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {"allowed_vector_store_indexes": [{"index_name": "my-index", "index_permissions": ["read"]}@@ -458,6 +461,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:mock_request.url.path = "/v1/vector_stores/my-index/search"mock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {}mock_user_api_key.team_metadata = None@@ -482,6 +486,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:mock_request.url.path = "/v1/vector_stores/my-index/unknown"mock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {"allowed_vector_store_indexes": [{"index_name": "my-index", "index_permissions": ["read", "write"]}@@ -518,6 +523,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:# Mock user API key with no key metadata but team metadatamock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = Nonemock_user_api_key.team_metadata = {"allowed_vector_store_indexes": [@@ -553,6 +559,7 @@ class TestIsAllowedToCallVectorStoreEndpoint:mock_request.url.path = "/v1/vector_stores/my-index/search"mock_user_api_key = MagicMock(spec=UserAPIKeyAuth)+ mock_user_api_key.user_role = Nonemock_user_api_key.metadata = {}mock_user_api_key.team_metadata = {}