Commit 01ccc9d
authored
✅ test(e2e): add namespace multi-tenant isolation and CLI integration tests (#394)
## Summary
- Add `TestE2ENamespaceMultiTenantLifecycle` class covering full
multi-tenant lifecycle: register namespaces, create entities, verify
data isolation, verify rate limiting isolation, verify config isolation,
soft-delete namespace, purge via GSI4, and confirm other namespaces are
unaffected
- Add `TestE2ENamespaceCLIWorkflow` class covering end-to-end CLI
namespace commands: deploy, register, list, show, entity set-limits with
`--namespace`, delete, orphans, recover, and cleanup
- Both test classes use LocalStack fixtures and validate that namespace
registry, `--namespace` flag, and per-namespace scoped repositories work
together correctly
- Clarify in `.claude/rules/testing.md` that xdist must stay enabled for
non-benchmark test runs
## Test plan
- [x] `uv run pytest tests/e2e/test_namespace.py -v` — 9/9 pass
(LocalStack)
- [x] `uv run pytest tests/unit/ -q` — 2349/2349 pass
- [x] `uv run pre-commit run --all-files` — all hooks pass
- [x] `uv run pytest tests/e2e/test_aws.py --run-aws -v` — 22 passed, 1
xfailed (real AWS)
Closes #373
Closes #363
🤖 Generated with [Claude Code](https://claude.com/claude-code)2 files changed
Lines changed: 485 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments