Add a method to create a user

This commit is contained in:
Valentin Tolmer
2021-05-26 08:43:31 +02:00
parent d1a42b178a
commit 5a70f2ebc2
6 changed files with 127 additions and 44 deletions

View File

@@ -27,6 +27,7 @@ mockall::mock! {
async fn list_users(&self, request: ListUsersRequest) -> DomainResult<Vec<User>>;
async fn list_groups(&self) -> DomainResult<Vec<Group>>;
async fn get_user_groups(&self, user: String) -> DomainResult<HashSet<String>>;
async fn create_user(&self, request: CreateUserRequest) -> DomainResult<()>;
}
#[async_trait]
impl TcpBackendHandler for TestTcpBackendHandler {