DocHub/backend/tests
Tianyang 9ef22f9f0a Fix wave 2: CORS default, path traversal, delete UI, shared clients, bucket check
- Default CORS_ORIGINS to http://localhost:5173 instead of "*" (still overridable)
- Reject ".." and leading "/" in document keys/paths across get/save/delete/upload,
  mapped to HTTP 400 via new InvalidPathError
- Add a delete button to DocumentEditor wired to deleteDocument + onDeleted,
  giving the existing DELETE API an actual UI entry point
- Share a single lru_cache'd Meilisearch (and Minio) SDK client instance instead
  of constructing duplicates in dependencies.py
- Add a startup check that creates the MinIO bucket if missing, tolerating
  MinIO being unreachable at boot without crashing the app
2026-08-01 09:15:16 +08:00
..
test_config.py Fix wave 2: CORS default, path traversal, delete UI, shared clients, bucket check 2026-08-01 09:15:16 +08:00
test_document_service.py Fix wave 2: CORS default, path traversal, delete UI, shared clients, bucket check 2026-08-01 09:15:16 +08:00
test_main.py Fix wave 2: CORS default, path traversal, delete UI, shared clients, bucket check 2026-08-01 09:15:16 +08:00
test_minio_client.py feat: add MinioClient wrapper for list/get/put/delete object operations 2026-08-01 02:24:15 +08:00
test_routers_documents.py Fix wave 2: CORS default, path traversal, delete UI, shared clients, bucket check 2026-08-01 09:15:16 +08:00
test_routers_search.py feat: add search route forwarding queries to SearchClient 2026-08-01 02:35:00 +08:00
test_search_client.py feat: add SearchClient wrapper for index/delete/search operations 2026-08-01 02:25:48 +08:00
test_text_extract.py fix: remove duplicate /health route, escape extracted text, validate uploads, handle binary decode 2026-08-01 08:59:34 +08:00