31 lines
2.0 KiB
Gherkin
31 lines
2.0 KiB
Gherkin
@api @files_sharing-app-required
|
|
Feature: auth
|
|
|
|
Background:
|
|
Given user "another-admin" has been created with default attributes and without skeleton files
|
|
|
|
@smokeTest @issue-ocis-reva-30 @issue-ocis-reva-65 @skipOnBruteForceProtection @issue-brute_force_protection-112 @skipOnOcV10 @issue-32068
|
|
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"
|