mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-19 19:41:00 -05:00
36 lines
2.2 KiB
Gherkin
36 lines
2.2 KiB
Gherkin
@api @issue-ocis-ocs-26
|
|
# after fixing all issues delete these Scenarios and use the one from oC10 core
|
|
|
|
Feature: auth
|
|
|
|
# these endpoints are handled by the reva ocs implementation
|
|
Scenario: send DELETE requests to OCS endpoints as admin with wrong password
|
|
When the administrator 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 |
|
|
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 "notset"
|
|
|
|
# these endpoints are handled by the ocis ocs implementation
|
|
Scenario: send DELETE requests to OCS endpoints as admin with wrong password
|
|
When the administrator requests these endpoints with "DELETE" 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%/subadmins |
|
|
| /ocs/v2.php/cloud/users/%username%/subadmins |
|
|
| /ocs/v1.php/cloud/users/%username%/groups |
|
|
| /ocs/v2.php/cloud/users/%username%/groups |
|
|
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 "notset"
|