Add unit tests for TeamsRepository and TeamsService

- Implement tests for team creation, retrieval, updating, and deletion in TeamsRepository.
- Add tests for team member management including adding and removing members.
- Create tests for team invitations and searching teams.
- Ensure proper cleanup of test data after each test case.
- Validate unauthorized operations for team management.
This commit is contained in:
MythEclipse
2025-09-22 14:59:38 +07:00
parent 6da1b2a7e7
commit 39b75f410f
17 changed files with 2829 additions and 22 deletions
+3
View File
@@ -3,11 +3,13 @@ use axum::Router;
pub mod auth;
pub mod permissions;
pub mod roles;
pub mod teams;
pub mod users;
pub use auth::*;
pub use permissions::*;
pub use roles::*;
pub use teams::*;
pub use users::*;
pub fn iam_public_routes() -> Router {
@@ -19,4 +21,5 @@ pub fn iam_protected_routes() -> Router {
.nest("/users", users_router())
.nest("/roles", roles_router())
.nest("/permissions", permissions_router())
.nest("/teams", teams_router())
}