-
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 #33121 from owncloud/occTest-cliProvisioning-getGr…
…oups Occ test cli provisioning get groups
- Loading branch information
Showing
3 changed files
with
105 additions
and
0 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
31 changes: 31 additions & 0 deletions
31
tests/acceptance/features/cliProvisioning/getGroup.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,31 @@ | ||
@cli @skipOnLDAP | ||
Feature: get group | ||
As an admin | ||
I want to be able to get group details | ||
So that I can know which users are in a group | ||
|
||
Scenario: admin gets users in the group | ||
Given user "brand-new-user" has been created | ||
And user "%admin%" has changed the display name of user "brand-new-user" to "Anne Brown" | ||
And user "123" has been created | ||
And group "new-group" has been created | ||
And user "brand-new-user" has been added to group "new-group" | ||
And user "123" has been added to group "new-group" | ||
When the administrator gets the users in the group "new-group" using the occ command | ||
Then the command should have been successful | ||
And the users returned by the occ command should be | ||
| uid | display name | | ||
| brand-new-user | Anne Brown | | ||
| 123 | 123 | | ||
|
||
Scenario: admin gets user in the group who is disabled | ||
Given user "brand-new-user" has been created | ||
And user "%admin%" has changed the display name of user "brand-new-user" to "Anne Brown" | ||
And user "brand-new-user" has been disabled | ||
And group "new-group" has been created | ||
And user "brand-new-user" has been added to group "new-group" | ||
When the administrator gets the users in the group "new-group" using the occ command | ||
Then the command should have been successful | ||
And the users returned by the occ command should be | ||
| uid | display name | | ||
| brand-new-user | Anne Brown | |
18 changes: 18 additions & 0 deletions
18
tests/acceptance/features/cliProvisioning/getGroups.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,18 @@ | ||
@cli @skipOnLDAP | ||
Feature: get groups | ||
As an admin | ||
I want to be able to get groups | ||
So that I can see all the groups in my ownCloud | ||
|
||
Scenario: admin gets all the groups | ||
Given group "0" has been created | ||
And group "new-group" has been created | ||
And group "España" has been created | ||
When the administrator gets the groups using the occ command | ||
Then the command should have been successful | ||
And the groups returned by the occ command should be | ||
| group | | ||
| España | | ||
| admin | | ||
| new-group | | ||
| 0 | |