mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 05:01:10 -05:00
42 lines
2.6 KiB
Gherkin
42 lines
2.6 KiB
Gherkin
Feature: auth
|
|
As a user
|
|
I want to send POST request to various endpoints
|
|
So that I can make sure the endpoints need proper authentication
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes
|
|
|
|
@issue-1337 @smokeTest
|
|
Scenario: send POST requests to OCS endpoints as normal user with wrong password
|
|
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "invalid" about user "Alice"
|
|
| endpoint |
|
|
| /ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pending/123 |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/123 |
|
|
| /ocs/v1.php/apps/files_sharing/api/v1/shares |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/shares |
|
|
| /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/123 |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/shares/pending/123 |
|
|
| /ocs/v1.php/cloud/apps/testing |
|
|
| /ocs/v2.php/cloud/apps/testing |
|
|
| /ocs/v1.php/cloud/groups |
|
|
| /ocs/v2.php/cloud/groups |
|
|
| /ocs/v1.php/cloud/users |
|
|
| /ocs/v2.php/cloud/users |
|
|
| /ocs/v1.php/cloud/users/%username%/groups |
|
|
| /ocs/v2.php/cloud/users/%username%/groups |
|
|
| /ocs/v1.php/cloud/users/%username%/subadmins |
|
|
| /ocs/v2.php/cloud/users/%username%/subadmins |
|
|
| /ocs/v1.php/privatedata/deleteattribute/testing/test |
|
|
| /ocs/v2.php/privatedata/deleteattribute/testing/test |
|
|
| /ocs/v1.php/privatedata/setattribute/testing/test |
|
|
| /ocs/v2.php/privatedata/setattribute/testing/test |
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|
|
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "invalid" about user "Alice"
|
|
| endpoint |
|
|
| /ocs/v1.php/person/check |
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|
|
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "invalid" about user "Alice"
|
|
| endpoint |
|
|
| /ocs/v2.php/person/check |
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|