nextcloud/build/integration/features/provisioning-v1.feature

107 lines
2.9 KiB
Gherkin
Raw Normal View History

Feature: provisioning
Background:
Given using api version "1"
Scenario: Getting an not existing user
Given As an "admin"
When sending "GET" to "/cloud/users/test"
Then the OCS status code should be "998"
And the HTTP status code should be "200"
2015-08-06 18:16:24 +03:00
Scenario: Listing all users
Given As an "admin"
When sending "GET" to "/cloud/users"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-08-06 18:16:24 +03:00
Scenario: Create a user
Given As an "admin"
And user "brand-new-user" does not exist
When sending "POST" to "/cloud/users" with
| userid | brand-new-user |
| password | 123456 |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-08-06 18:16:24 +03:00
And user "brand-new-user" exists
2015-10-05 14:54:30 +03:00
Scenario: Create an existing user
Given As an "admin"
And user "brand-new-user" exists
When sending "POST" to "/cloud/users" with
| userid | brand-new-user |
| password | 123456 |
Then the OCS status code should be "102"
And the HTTP status code should be "200"
Scenario: Get an existing user
Given As an "admin"
When sending "GET" to "/cloud/users/brand-new-user"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-09-29 13:54:43 +03:00
2015-10-06 19:37:55 +03:00
Scenario: Getting all users
Given As an "admin"
And user "brand-new-user" exists
And user "admin" exists
2015-10-06 19:37:55 +03:00
When sending "GET" to "/cloud/users"
And users returned are
| brand-new-user |
| admin |
2015-10-06 19:37:55 +03:00
2015-09-30 19:57:02 +03:00
Scenario: Edit a user
Given As an "admin"
And user "brand-new-user" exists
When sending "PUT" to "/cloud/users/brand-new-user" with
| key | quota |
| value | 12MB |
| key | email |
| value | brand-new-user@gmail.com |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-09-30 19:57:02 +03:00
And user "brand-new-user" exists
2015-09-29 13:54:43 +03:00
Scenario: Delete a user
Given As an "admin"
And user "brand-new-user" exists
2015-09-29 18:05:52 +03:00
When sending "DELETE" to "/cloud/users/brand-new-user"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-09-29 13:54:43 +03:00
And user "brand-new-user" does not exist
2015-09-29 17:52:19 +03:00
Scenario: Create a group
Given As an "admin"
And group "new-group" does not exist
When sending "POST" to "/cloud/groups" with
| groupid | new-group |
| password | 123456 |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-09-29 17:52:19 +03:00
And group "new-group" exists
2015-09-29 18:05:52 +03:00
Scenario: Getting all groups
2015-10-07 12:03:00 +03:00
Given As an "admin"
And group "new-group" exists
And group "admin" exists
2015-10-07 12:03:00 +03:00
When sending "GET" to "/cloud/groups"
And groups returned are
| admin |
| new-group |
2015-10-07 12:03:00 +03:00
2015-09-29 18:05:52 +03:00
Scenario: Delete a group
Given As an "admin"
And group "new-group" exists
When sending "DELETE" to "/cloud/groups/new-group"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
2015-09-29 18:05:52 +03:00
And group "new-group" does not exist