mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 12:10:21 -05:00
19 lines
984 B
Gherkin
19 lines
984 B
Gherkin
Feature: auth
|
|
As a user
|
|
I want to send PUT request to various endpoints
|
|
So that I can make sure the endpoints need proper authentication
|
|
|
|
@issue-1337 @smokeTest
|
|
Scenario: send PUT request to OCS endpoints as admin with wrong password
|
|
When user "admin" requests these endpoints with "PUT" including body "doesnotmatter" using password "invalid" about user "Alice"
|
|
| endpoint |
|
|
| /ocs/v1.php/cloud/users/%username% |
|
|
| /ocs/v2.php/cloud/users/%username% |
|
|
| /ocs/v1.php/cloud/users/%username%/disable |
|
|
| /ocs/v2.php/cloud/users/%username%/disable |
|
|
| /ocs/v1.php/cloud/users/%username%/enable |
|
|
| /ocs/v2.php/cloud/users/%username%/enable |
|
|
| /ocs/v1.php/apps/files_sharing/api/v1/shares/123 |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/shares/123 |
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|