-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi QA,
Pain
We need automated tests to verify tenant isolation works correctly and prevent data leakage between tenants.
Suggested Solution
Create comprehensive integration tests that verify tenant data isolation across all major features (users, achievements, leaderboards, etc.).
Implementation:
- Create multi-tenant test fixtures
- Write isolation tests
- Test cross-tenant scenarios
- Add to CI/CD
Tasks
- Create multi-tenant test fixtures
- Write integration tests for tenant isolation
- Test: Users from Tenant A cannot see Tenant B data
- Test: API requests require valid tenant context
- Test: Query filters apply correctly
- Test: Achievements are tenant-scoped
- Test: Leaderboards are tenant-scoped
- Test cross-tenant scenarios
- Add tests to CI/CD pipeline
- Document test scenarios
Acceptance Criteria
- Meets Definition of Done - https://github.com/SSWConsulting/SSW.Rewards.Mobile/blob/main/_docs/Definition-of-Done.md
- Test: Users from Tenant A cannot see Tenant B data
- Test: API requests require valid tenant context
- Test: Query filters apply correctly
- Test: Achievements are tenant-scoped
- Test: Leaderboards are tenant-scoped
- All tests pass in CI/CD
More Information
Files to Create:
- NEW:
tests/Integration.Tests/MultiTenant/* - Update existing test setup for multi-tenancy
Epic: #1483
Thanks!
Metadata
Metadata
Assignees
Labels
No labels