-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ad groups update of the user model
Test that the `update_ad_groups` function of the User-model works as expected: 1. If the same group is mapped to multiple ad-groups and the ad-groups input argument contains only some, the group is still persisted to user instance since it was mapped to at least one of given ad-groups. 2. If the ad-groups input argument does not have any link to an existing group of a user, the group is removed from the user instance. 3. If the ad-groups input argument contains links to new groups that the user is not yet linked to, the group will be added to the user instance.
- Loading branch information
1 parent
7381cda
commit f3201ad
Showing
1 changed file
with
154 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters