mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-25 21:48:28 -05:00
34 lines
2.1 KiB
Gherkin
34 lines
2.1 KiB
Gherkin
@api @files_sharing-app-required
|
|
Feature: auth
|
|
As a user
|
|
I want to send delete request with wrong password
|
|
So that I can make sure it doesn't work
|
|
|
|
Background:
|
|
Given user "another-admin" has been created with default attributes and without skeleton files
|
|
|
|
@smokeTest @issue-1337 @issue-1319 @skipOnBruteForceProtection @issue-brute_force_protection-112
|
|
Scenario: send DELETE requests to OCS endpoints as admin with wrong password
|
|
Given user "another-admin" has been added to group "admin"
|
|
When user "another-admin" requests these endpoints with "DELETE" 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/remote_shares/123 |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/remote_shares/123 |
|
|
| /ocs/v2.php/apps/files_sharing/api/v1/shares/123 |
|
|
| /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/group1 |
|
|
| /ocs/v2.php/cloud/groups/group1 |
|
|
| /ocs/v1.php/cloud/users/%username% |
|
|
| /ocs/v2.php/cloud/users/%username% |
|
|
| /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 |
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|
|
And the OCS status code of responses on all endpoints should be "401"
|