[test-only] apiTest. change own password (#4480)

* apiTest. change own password

* fix
This commit is contained in:
Viktor Scharf
2022-08-31 13:02:33 +02:00
committed by GitHub
parent 7d39e02dc4
commit 3b548c9be3
3 changed files with 72 additions and 0 deletions
@@ -0,0 +1,17 @@
@api
Feature: an user changes its own password
Scenario Outline: change own password
Given user "Alice" has been created with default attributes and without skeleton files
When the user "Alice" changes its own password "<currentPassword>" to "<newPassword>" using the Graph API
Then the HTTP status code should be "<code>"
Examples:
| currentPassword | newPassword | code |
| 123456 | validPass | 204 |
| 123456 | кириллица | 204 |
| 123456 | | 204 |
| 123456 | ?&^%0 | 204 |
| 123456 | | 400 |
| 123456 | 123456 | 400 |
| wrongPass | 123456 | 500 |
| | validPass | 400 |