✅ test(e2e): add namespace multi-tenant isolation and CLI integration tests#394
Merged
Conversation
Add end-to-end tests for namespace management against LocalStack: - TestE2ENamespaceMultiTenantLifecycle: register ns-a/ns-b, create entities, verify isolation (entity, rate limiting, config), delete ns-a, purge data, verify ns-b unaffected (8 async tests) - TestE2ENamespaceCLIWorkflow: full CLI lifecycle covering namespace register/list/show/delete/orphans/recover and --namespace flag on entity commands (1 sync test) Closes #373 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
=======================================
Coverage 91.88% 91.88%
=======================================
Files 33 33
Lines 7435 7435
=======================================
Hits 6832 6832
Misses 603 603
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TestE2ENamespaceMultiTenantLifecycleclass 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 unaffectedTestE2ENamespaceCLIWorkflowclass covering end-to-end CLI namespace commands: deploy, register, list, show, entity set-limits with--namespace, delete, orphans, recover, and cleanup--namespaceflag, and per-namespace scoped repositories work together correctly.claude/rules/testing.mdthat xdist must stay enabled for non-benchmark test runsTest plan
uv run pytest tests/e2e/test_namespace.py -v— 9/9 pass (LocalStack)uv run pytest tests/unit/ -q— 2349/2349 passuv run pre-commit run --all-files— all hooks passuv run pytest tests/e2e/test_aws.py --run-aws -v— 22 passed, 1 xfailed (real AWS)Closes #373
Closes #363
🤖 Generated with Claude Code