test: Enhance E2E workspace isolation detection with content verification
Add specific content assertions to detect cross-contamination between workspaces.
Previously only checked that workspaces had different data, now verifies:
- Each workspace contains only its own text content
- Each workspace does NOT contain the other workspace's content
- Cross-contamination would be immediately detected
This ensures the test can find problems, not just pass.
Changes:
- Add assertions for "Artificial Intelligence" and "Machine Learning" in project_a
- Add assertions for "Deep Learning" and "Neural Networks" in project_b
- Add negative assertions to verify data leakage doesn't occur
- Add detailed output messages showing what was verified
Testing:
- pytest tests/test_workspace_isolation.py::test_lightrag_end_to_end_workspace_isolation
- Test passes with proper content isolation verified
(cherry picked from commit 3ec736932e)
This commit is contained in:
parent
f2771cc953
commit
f1fa1cd340
1 changed files with 371 additions and 742 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue