SurfSense/surfsense_backend/tests/integration
Dmitry Maranik 81fc467187 test(connectors): regression tests for cross-search-space index authorization
Two integration tests pinning the connector index endpoint's authorization:

- cross-space index (attacker owns space B, connector lives in victim's
  space A, request passes search_space_id=B) is rejected with 404 at the
  search-space reconciliation, before the permission check (which would
  otherwise pass for the attacker's own space).
- same-space index authorizes check_permission against the connector's
  own search space, not the caller-supplied query param.

Mirrors the existing tests/integration harness (direct handler calls with
the savepoint-rolled-back db_session; check_permission patched so the test
needs no real RBAC wiring).
2026-06-16 16:18:40 -07:00
..
agents/multi_agent_chat chore: linting 2026-06-09 00:42:26 -07:00
chat feat(chat): Introduce centralized thread metadata management and update chat visibility handling with new hooks for thread mutations 2026-06-04 14:15:48 +05:30
composio fix(tests): improve composio module hijack in integration tests 2026-05-13 00:44:20 +05:30
document_upload test(index-cache): add unit tests and repoint embed/chunk patch targets 2026-06-12 16:48:18 +02:00
etl_pipeline/cache test(etl-cache): cover two-phase eviction task on real infra 2026-06-12 11:54:36 +02:00
google_unification refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
harness feat: updated agent harness 2026-04-28 09:22:19 -07:00
indexing_pipeline test(indexing): cover the edit path and make integration caches hermetic 2026-06-12 18:53:21 +02:00
notifications feat(refactor): refactor payment system to implement unified credit wallet. 2026-06-10 16:49:03 -07:00
podcasts test: fix auth-mode mismatch and stale QuotaInsufficientError kwargs 2026-06-12 12:19:49 +02:00
retriever refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
conftest.py test(indexing): cover the edit path and make integration caches hermetic 2026-06-12 18:53:21 +02:00
test_connector_index_authz.py test(connectors): regression tests for cross-search-space index authorization 2026-06-16 16:18:40 -07:00
test_document_versioning.py chore: ran linting 2026-04-03 13:14:40 +05:30
test_obsidian_plugin_routes.py chore: linting 2026-04-27 14:04:50 -07:00