Skip to content

Commit

Permalink
Provisioning API - check that users in a group are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Mar 19, 2018
1 parent 05bda69 commit 1f77674
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/acceptance/features/apiMain/provisioning-v1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,25 @@ Feature: provisioning
Then the OCS status code should be "103"
And the HTTP status code should be "200"

Scenario: getting a group
Scenario: getting an empty group
Given group "new-group" has been created
When user "admin" sends HTTP method "GET" to API endpoint "/cloud/groups/new-group"
Then the OCS status code should be "100"
And the HTTP status code should be "200"

Scenario: getting users in a group
Given user "brand-new-user" has been created
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 user "admin" sends HTTP method "GET" to API endpoint "/cloud/groups/new-group"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And the users returned by the API should be
| brand-new-user |
| 123 |

Scenario: Getting all groups
Given group "0" has been created
And group "new-group" has been created
Expand Down

0 comments on commit 1f77674

Please sign in to comment.