api.v1.test_user_accounts¶
Tests for user accounts.
| caseautomation: | automated |
|---|---|
| casecomponent: | api |
| caseimportance: | high |
| caselevel: | integration |
| requirement: | Cloud Meter |
| testtype: | functional |
| upstream: | yes |
-
integrade.tests.api.v1.test_user_accounts.test_create()¶ Ensure user accounts can be created with username and password.
Id: 5099a61d-7aa6-4c1b-8408-d030f210cd08 Description: Ensure an user account can be created by an super user account with only username and password. Steps: With an authenticated superuser, send a post request to /auth/user/create/ with an username and password. Expectedresults: The server returns a 201 response with the information of the created user. The information should include the information passed as payload to the create request and also an ID should be created.
-
integrade.tests.api.v1.test_user_accounts.test_create_with_email()¶ Ensure user accounts can be created with username, email and password.
Id: 003ac47f-9946-4ffe-b49d-732dbffe1cfc Description: Ensure an user account can be created by an super user account with username, email and password. Steps: With an authenticated superuser, send a post request to /auth/user/create/ with an username, email and password. Expectedresults: The server returns a 201 response with the information of the created user. The information should include the information passed as payload to the create request and also an ID should be created.
-
integrade.tests.api.v1.test_user_accounts.test_user_list(drop_account_data)¶ Super users can request lists of created user accounts.
Id: 52567e92-2b6a-43b0-bdc0-5a347b9dd4bc
Description: Super users, and only super users, are able to request a user list.
Steps: - Authenticate with a super user account and request the user list
- end point contains yourself and a created non-super user account.
- Authenticate with a non-super user account and request the user list
- to verify a 4xx error
Expectedresults: The super user can get the list, but not the regular user account.