litellm/tests/proxy_e2e_search_api_tests
Cursor Agent c691a28b6e Add E2E test for search API endpoints with Perplexity in CircleCI
- Create tests/proxy_e2e_search_api_tests/ with test_config.yaml and test_e2e_search_api.py
- Test config configures perplexity-search tool with PERPLEXITYAI_API_KEY env var
- E2E tests cover:
  - Proxy health check
  - Search tools listing and validation
  - Basic search via /v1/search/{tool_name} (URL path param)
  - Search with max_results parameter
  - Search via /v1/search with tool name in request body
  - Async search variant
  - Error case: missing query field
  - Error case: unauthenticated request
- Add proxy_e2e_search_api_tests job to .circleci/config.yml
  - Machine executor with Docker, PostgreSQL, and litellm-docker-database image
  - Passes PERPLEXITYAI_API_KEY to the proxy container
  - Requires build_docker_database_image
  - Runs on main and litellm_* branches
  - Added to publish_to_pypi requires gate

Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
2026-02-25 23:19:05 +00:00
..
test_config.yaml Add E2E test for search API endpoints with Perplexity in CircleCI 2026-02-25 23:19:05 +00:00
test_e2e_search_api.py Add E2E test for search API endpoints with Perplexity in CircleCI 2026-02-25 23:19:05 +00:00