fleet-memory/hindsight-integration-tests
Derek Bouius 300d089b6a
fix: resolve remaining Dependabot security alerts (#833)
* fix: resolve remaining Dependabot security alerts

- Regenerate package-lock.json so npm overrides take effect
  (serialize-javascript, handlebars, path-to-regexp, brace-expansion)
- Upgrade Pygments 2.19.2 -> 2.20.0 in crewai and integration-tests
  lockfiles (fixes ReDoS via GUID matching)

* fix: resolve duplicate alembic revision ID d6e7f8a9b0c1

Two migrations shared the same revision ID: the merge migration
(drop_documents_metadata_column) and the trigram index migration
(case_insensitive_entities_trgm_index). Assign a new unique ID
to the trigram migration and update the downstream dependency.

* chore: fix lint formatting for generated and existing files
2026-04-01 17:22:38 +02:00
..
tests feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
pyproject.toml fix(deps): address critical and high severity security vulnerabilities (#827) 2026-04-01 09:20:34 +02:00
README.md feat: add reverse proxy support (#346) 2026-02-12 10:09:53 +01:00
uv.lock fix: resolve remaining Dependabot security alerts (#833) 2026-04-01 17:22:38 +02:00

Hindsight Integration Tests

E2E and integration tests for Hindsight API that require a running server.

Test Types

1. Tests with External Server

Tests like test_mcp_e2e.py expect a server to already be running.

Running:

# Start the API server
./scripts/dev/start-api.sh

# Run tests
cd hindsight-integration-tests
HINDSIGHT_API_URL=http://localhost:8888 uv run pytest tests/test_mcp_e2e.py -v

2. Self-Contained Tests

Tests like test_base_path_deployment.py manage their own server lifecycle and use docker-compose.

Running:

cd hindsight-integration-tests

# Run with pytest
uv run pytest tests/test_base_path_deployment.py -v

# Or run directly for nice output
uv run python tests/test_base_path_deployment.py

Requirements:

  • Docker and docker-compose installed (for reverse proxy test)
  • No nginx required on host!

What it tests:

  • API with base path (direct server)
  • Full reverse proxy via docker-compose + Nginx
  • Regression: API without base path
  • Full retain/recall workflow

These tests:

  • Start their own API servers on dedicated ports (18888-18891)
  • Use docker-compose to test actual deployment scenarios
  • Run in parallel with other tests (no port conflicts)
  • Clean up automatically

Running All Tests

cd hindsight-integration-tests
uv run pytest tests/ -v

This runs both types. Self-contained tests won't conflict with the external server.

Environment Variables

  • HINDSIGHT_API_URL - Base URL for external-server tests (default: http://localhost:8888)