mirror of
https://github.com/lldap/lldap.git
synced 2026-07-15 20:15:46 +00:00
server: add support for creating a group with attributes
This commit is contained in:
committed by
nitnelave
parent
2c398d0e8e
commit
2a5fd01439
@@ -23,7 +23,7 @@ pub mod tests {
|
||||
use crate::{
|
||||
domain::{
|
||||
handler::{
|
||||
CreateUserRequest, GroupBackendHandler, UserBackendHandler,
|
||||
CreateGroupRequest, CreateUserRequest, GroupBackendHandler, UserBackendHandler,
|
||||
UserListerBackendHandler, UserRequestFilter,
|
||||
},
|
||||
sql_tables::init_table,
|
||||
@@ -98,7 +98,13 @@ pub mod tests {
|
||||
}
|
||||
|
||||
pub async fn insert_group(handler: &SqlBackendHandler, name: &str) -> GroupId {
|
||||
handler.create_group(name).await.unwrap()
|
||||
handler
|
||||
.create_group(CreateGroupRequest {
|
||||
display_name: name.to_owned(),
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
pub async fn insert_membership(handler: &SqlBackendHandler, group_id: GroupId, user_id: &str) {
|
||||
|
||||
Reference in New Issue
Block a user