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:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user