mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 11:57:41 +02:00
more complex unit test for get_roles
This commit is contained in:
parent
991f8ee72d
commit
19f98aa664
2 changed files with 19 additions and 5 deletions
|
@ -26,3 +26,14 @@ groups = {
|
|||
|
||||
print inv.get_roles(groups)
|
||||
|
||||
groups = {
|
||||
'ad' : ['Domain Users', 'Domain Users 2'],
|
||||
'ldap': ['cn=users,ou=group,dc=example,dc=com',
|
||||
'cn=nagios admins,ou=group,dc=example,dc=com',
|
||||
'cn=developpers,ou=group,dc=example,dc=com',
|
||||
],
|
||||
'toto': ['not a group'],
|
||||
}
|
||||
|
||||
|
||||
print inv.get_roles(groups)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue