-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9159b45
commit 083e2a7
Showing
3 changed files
with
51 additions
and
2 deletions.
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
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
36 changes: 36 additions & 0 deletions
36
tests/acceptance/features/cliProvisioning/getUserGroups.feature
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@cli @skipOnLDAP | ||
Feature: get user groups | ||
As an admin | ||
I want to be able to get groups | ||
So that I can manage group membership | ||
|
||
Scenario: admin gets groups of an user | ||
Given user "brand-new-user" has been created | ||
And group "unused-group" has been created | ||
And group "new-group" has been created | ||
And group "0" has been created | ||
And group "Admin & Finance (NP)" has been created | ||
And group "admin:Pokhara@Nepal" has been created | ||
And group "नेपाली" has been created | ||
And user "brand-new-user" has been added to group "new-group" | ||
And user "brand-new-user" has been added to group "0" | ||
And user "brand-new-user" has been added to group "Admin & Finance (NP)" | ||
And user "brand-new-user" has been added to group "admin:Pokhara@Nepal" | ||
And user "brand-new-user" has been added to group "नेपाली" | ||
When the administrator gets the groups of user "brand-new-user" using the occ command | ||
Then the command should have been successful | ||
And the groups returned by the occ command should be | ||
| group | | ||
| new-group | | ||
| 0 | | ||
| Admin & Finance (NP) | | ||
| admin:Pokhara@Nepal | | ||
| नेपाली | | ||
|
||
Scenario: admin gets groups of an user who is not in any groups | ||
Given user "brand-new-user" has been created | ||
And group "unused-group" has been created | ||
When the administrator gets the groups of user "brand-new-user" using the occ command | ||
Then the command should have been successful | ||
And the list of groups returned by the API should be empty | ||
And the occ command JSON output should be empty |