Add group iteration and syncing support to Keystone auth

This commit is contained in:
Joseph Schorr 2017-02-23 14:41:27 -05:00
parent 47278cc559
commit d7825c6720
6 changed files with 148 additions and 15 deletions

View file

@ -709,8 +709,9 @@ def populate_database(minimal=False, with_storage=False):
model.team.add_user_to_team(new_user_4, sell_owners)
sync_config = {'group_dn': 'cn=Test-Group,ou=Users', 'group_id': 'somegroupid'}
synced_team = model.team.create_team('synced', org, 'member', 'Some synced team.')
model.team.set_team_syncing(synced_team, 'ldap', {'group_dn': 'cn=Test-Group,ou=Users'})
model.team.set_team_syncing(synced_team, 'ldap', sync_config)
another_synced_team = model.team.create_team('synced', thirdorg, 'member', 'Some synced team.')
model.team.set_team_syncing(another_synced_team, 'ldap', {'group_dn': 'cn=Test-Group,ou=Users'})