Files
ocis/tests/acceptance/features/apiBugDemonstration/apiAuthOcs-ocsPUTAuth.feature
T

29 lines
1.5 KiB
Gherkin
Raw Normal View History

2020-09-18 13:15:21 +02:00
@api
Feature: auth
@issue-ocis-reva-30
@issue-ocis-ocs-26
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: send PUT request to OCS endpoints as admin with wrong password
When the administrator requests these endpoints with "PUT" with body "doesnotmatter" using password "invalid" about user "Alice"
| endpoint |
| /ocs/v1.php/apps/files_sharing/api/v1/shares/123 |
| /ocs/v2.php/apps/files_sharing/api/v1/shares/123 |
2020-10-28 10:48:31 +01:00
| /ocs/v1.php/cloud/users/%username% |
| /ocs/v2.php/cloud/users/%username% |
2020-09-18 13:15:21 +02:00
Then the HTTP status code of responses on all endpoints should be "401"
2020-10-27 14:33:51 +01:00
And the OCS status code of responses on all endpoints should be "notset"
2020-09-18 13:15:21 +02:00
@issue-ocis-reva-30
@issue-ocis-ocs-28
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: send PUT request to OCS endpoints as admin with wrong password
When the administrator requests these endpoints with "PUT" with body "doesnotmatter" using password "invalid" about user "Alice"
2020-10-16 12:53:16 +05:45
| endpoint |
| /ocs/v1.php/cloud/users/%username%/disable |
| /ocs/v2.php/cloud/users/%username%/disable |
2020-10-27 09:52:08 +01:00
| /ocs/v1.php/cloud/users/%username%/enable |
2020-10-16 12:53:16 +05:45
| /ocs/v2.php/cloud/users/%username%/enable |
Then the HTTP status code of responses on all endpoints should be "401"
2020-10-28 10:48:31 +01:00
And the OCS status code of responses on all endpoints should be "notset"
2020-09-18 13:15:21 +02:00