1
0
mirror of https://github.com/owncloud/ocis.git synced 2026-10-23 23:29:02 +03:00
Files
ocis/tests/acceptance/features/apiGraphUser/changeOwnPassword.feature
Nalem7 afa8790227 [tests-only] add graph API tests for password change re-authentication (#12664)
test: add graph API tests for password change re-authentication

Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2026-08-05 11:46:39 +05:45

32 lines
1.5 KiB
Gherkin
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Feature: an user changes its own password
As a user
I want to change my password
So that I can use new combination as password
Scenario Outline: change own password
Given user "Alice" has been created with default attributes
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>"
Examples:
| current-password | new-password | http-status-code |
| 123456 | validPass | 204 |
| 123456 | кириллица | 204 |
| 123456 | 密码 | 204 |
| 123456 | ?&^%0 | 204 |
| 123456 | | 400 |
| 123456 | 123456 | 400 |
| wrongPass | 123456 | 400 |
| | validPass | 400 |
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 |