mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
53 lines
3.4 KiB
Gherkin
53 lines
3.4 KiB
Gherkin
@api @issue-ocis-ocs-26
|
|
# after fixing all issues delete these Scenarios and use the one from oC10 core
|
|
|
|
Feature: auth
|
|
|
|
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"
|
|
|
|
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 |
|
|
Then the HTTP status code of responses on all endpoints should be "200"
|
|
And the OCS status code of responses on all endpoints should be "998"
|
|
|
|
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%/groups |
|
|
Then the HTTP status code of responses on all endpoints should be "200"
|
|
And the OCS status code of responses on all endpoints should be "996"
|
|
|
|
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/v2.php/cloud/users/%username%/groups |
|
|
Then the HTTP status code of responses on all endpoints should be "500"
|
|
And the OCS status code of responses on all endpoints should be "996"
|
|
|
|
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/v2.php/cloud/users/%username% |
|
|
| /ocs/v2.php/cloud/users/%username%/subadmins |
|
|
Then the HTTP status code of responses on all endpoints should be "404"
|
|
And the OCS status code of responses on all endpoints should be "998"
|