mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +01:00
ab20642f0d
Including 1. LDAP group configure settings 2. Assign role to LDAP user group. 3. Manage user group
2.2 KiB
2.2 KiB
Test 12-01 LDAP Usergroup Add
Purpose
To verify admin user can add an LDAP group
References:
User guide
Environments:
- This test requires that a Harbor instance is running and available.
- An LDAP server is running and available, and enabled memberof overlay feature
- LDAP group config parameter are configured.
- ldap_group_basedn
- ldap_group_filter
- ldap_gid
- ldap_group_scope
Test Steps:
- Login UI as admin user.
- In
Administration->User Group
page, Add an LDAP with a valid group DN with group name.Expected Result
- The user group should be created with specified name.
- In
Administration->User Group
page, Add an LDAP with a non-exist group DNExpected Result
- The user group can not be created
- In
Administration->User Group
page, Add an LDAP with a group DN which already exist, but with different name.Expected Result
- The user group is renamed to new user group name.
- In
Administration->User Group
page, Add an LDAP with a valid group DN without group name.Expected Result
- The user group is created and named with the same name in LDAP.
- Change the configure parameter ldap_group_basedn to another DN, so that the LDAP user group is outside the base DN.
- In
Administration->User Group
page, Add an LDAP with a valid group DN but outside the base DN.Expected Result
- The user group can not be created
- Change ldap_group_scope from 2 to 0, so that the LDAP group can not be found with the current scope.
- In
Administration->User Group
page, Add an LDAP with a valid group DN but can not be searched.Expected Result
- The user group can not be created
- Change ldap_group_filter to with a specified filter, so that it can filter out the current group DN.
- In
Administration->User Group
page, Add an LDAP with a valid group DN but this group DN is filteredExpected Result
- the user group can not be created.
- Change ldap_gid with another attribute other than cn
- In
Administration->User Group
page, Add an LDAP with a valid group DN, check the user group name.Expected Result
- The user group is created, the group name is named by specified attributed.