-
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.
Merge pull request #33129 from owncloud/occTest-cliProvisioning-getUs…
…erGroups Occ test cli provisioning get user groups
- Loading branch information
Showing
3 changed files
with
49 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
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
35 changes: 35 additions & 0 deletions
35
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,35 @@ | ||
@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 occ command JSON output should be empty |