2022-08-31 13:02:33 +02:00
|
|
|
Feature: an user changes its own password
|
2023-04-17 17:05:12 +05:45
|
|
|
As a user
|
|
|
|
|
I want to change my password
|
|
|
|
|
So that I can use new combination as password
|
2022-11-01 15:13:14 +05:45
|
|
|
|
2024-06-10 11:49:27 +05:45
|
|
|
|
2023-03-28 15:11:41 +05:45
|
|
|
Scenario Outline: change own password
|
2024-11-29 09:39:21 +05:45
|
|
|
Given user "Alice" has been created with default attributes
|
2024-03-19 13:00:42 +05:45
|
|
|
When the user "Alice" changes its own password "<current-password>" to "<new-password>" using the Graph API
|
|
|
|
|
Then the HTTP status code should be "<http-status-code>"
|
2023-03-28 15:11:41 +05:45
|
|
|
Examples:
|
2024-03-19 13:00:42 +05:45
|
|
|
| current-password | new-password | http-status-code |
|
|
|
|
|
| 123456 | validPass | 204 |
|
|
|
|
|
| 123456 | кириллица | 204 |
|
2026-08-05 11:46:39 +05:45
|
|
|
| 123456 | 密码 | 204 |
|
2024-03-19 13:00:42 +05:45
|
|
|
| 123456 | ?&^%0 | 204 |
|
|
|
|
|
| 123456 | | 400 |
|
|
|
|
|
| 123456 | 123456 | 400 |
|
|
|
|
|
| wrongPass | 123456 | 400 |
|
|
|
|
|
| | validPass | 400 |
|
2026-08-05 11:46:39 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: user tries to change password without current password using PATCH
|
|
|
|
|
Given user "Alice" has been created with default attributes
|
|
|
|
|
When user "Alice" tries to change their password to "<new-password>" with patch request using the Graph API
|
|
|
|
|
Then the HTTP status code should be "<http-status-code>"
|
|
|
|
|
Examples:
|
|
|
|
|
| new-password | http-status-code |
|
|
|
|
|
| 123456 | 400 |
|
|
|
|
|
| newPass | 400 |
|
|
|
|
|
| | 400 |
|