Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/acceptance/features/apiProvisioning/addGroup.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ As an admin
I want to be able to add groups
So that I can more easily manage access to resources by groups rather than individual users

Background:
Given using API version "1"

Scenario: Create a group
Given group "new-group" has been deleted
When the administrator sends a group creation request for group "new-group" using the API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ So that I can give a user access to the resources of the group

Background:
Given using API version "1"

Scenario Outline: adding a user to a group
Given user "brand-new-user" has been created
And group "<group_id>" has been created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ As an admin
I want to be able to delete users
So that I can remove user from ownCloud

Background:
Given using API version "1"

Scenario: Delete a user
Given user "brand-new-user" has been created
When user "admin" sends HTTP method "DELETE" to API endpoint "/cloud/users/brand-new-user"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ So that I can give a user access to their files and resources again if they are
And user "subadmin" has been added to group "new-group"
And user "admin" has been added to group "new-group"
And user "subadmin" has been made a subadmin of group "new-group"
And user "another-admin" has been disabled
When user "admin" sends HTTP method "PUT" to API endpoint "/cloud/users/subadmin/disable"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/features/apiProvisioning/getGroups.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ As an admin
I want to be able to get groups
So that I can see all the groups in my ownCloud

Background:
Given using API version "1"

Scenario: Getting all groups
Given group "0" has been created
And group "new-group" has been created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ As an admin
I want to be able to get the list of subadmins of a group
So that I can manage subadmins of a group

Background:
Given using API version "1"

Scenario: Getting subadmin users of a group
Given user "brand-new-user" has been created
And group "new-group" has been created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ As an admin
I want to be able to get groups
So that I can manage group membership

Background:
Given using API version "1"

Scenario: getting groups of an user
Given user "brand-new-user" has been created
And group "new-group" has been created
Expand All @@ -14,4 +17,5 @@ So that I can manage group membership
Then the groups returned by the API should be
| new-group |
| 0 |
And the OCS status code should be "100"
And the OCS status code should be "100"
And the HTTP status code should be "200"
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ So that I can manage user access to group resources
When user "admin" sends HTTP method "DELETE" to API endpoint "/cloud/users/brand-new-user/groups" with body
| groupid | <group_id> |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And user "brand-new-user" should not belong to group "<group_id>"
Examples:
| group_id |
Expand Down