Add a method to create a group

This commit is contained in:
Valentin Tolmer
2021-05-26 15:42:02 +02:00
parent 8e369016da
commit b3c2f5edfc
5 changed files with 39 additions and 19 deletions

View File

@@ -28,6 +28,7 @@ mockall::mock! {
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 fn create_group(&self, request: CreateGroupRequest) -> DomainResult<i32>;
}
#[async_trait]
impl TcpBackendHandler for TestTcpBackendHandler {