2015-08-06 16:44:24 +03:00
|
|
|
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 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 status code should be "200"
|
|
|
|
|
|
|
|
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 status code should be "200"
|
|
|
|
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
|
|
|
|
When sending "POST" to "/cloud/users" with
|
|
|
|
| userid | brand-new-user |
|
|
|
|
Then the status code should be "200"
|
|
|
|
And user "brand-new-user" does not exist
|