diff --git a/tests/acceptance/features/apiMain/auth.feature b/tests/acceptance/features/apiMain/auth.feature index 4a8492e54d9c..8fe6565f5892 100644 --- a/tests/acceptance/features/apiMain/auth.feature +++ b/tests/acceptance/features/apiMain/auth.feature @@ -231,6 +231,34 @@ Feature: auth | 1 |/cloud/users/user0/enable | 997 | 401 | | 2 |/cloud/users/user0/enable | 997 | 401 | + @issue-32068 + Scenario Outline: send DELETE requests to OCS endpoints as admin with wrong password + Given using OCS API version "" + And group "group1" has been created + When the administrator sends HTTP method "DELETE" to OCS API endpoint "" using password "invalid" + Then the OCS status code should be "" + And the HTTP status code should be "" + Examples: + | ocs_api_version |endpoint | ocs-code | http-code | + | 1 |/apps/files_sharing/api/v1/remote_shares/pending/123 | 997 | 401 | + | 2 |/apps/files_sharing/api/v1/remote_shares/pending/123 | 997 | 401 | + | 1 |/apps/files_sharing/api/v1/remote_shares/123 | 997 | 401 | + | 2 |/apps/files_sharing/api/v1/remote_shares/123 | 997 | 401 | + | 1 |/apps/files_sharing/api/v1/shares/123 | 997 | 401 | + | 2 |/apps/files_sharing/api/v1/shares/123 | 997 | 401 | + | 1 |/apps/files_sharing/api/v1/shares/pending/123 | 997 | 401 | + | 2 |/apps/files_sharing/api/v1/shares/pending/123 | 997 | 401 | + | 1 |/cloud/apps/testing | 997 | 401 | + | 2 |/cloud/apps/testing | 997 | 401 | + | 1 |/cloud/groups/group1 | 997 | 401 | + | 2 |/cloud/groups/group1 | 997 | 401 | + | 1 |/cloud/users/user0 | 997 | 401 | + | 2 |/cloud/users/user0 | 997 | 401 | + | 1 |/cloud/users/user0/groups | 997 | 401 | + | 2 |/cloud/users/user0/groups | 997 | 401 | + | 1 |/cloud/users/user0/subadmins | 997 | 401 | + | 2 |/cloud/users/user0/subadmins | 997 | 401 | + Scenario Outline: using OCS with token auth of a normal user When user "user0" requests "" with "GET" using basic token auth Then the OCS status code should be ""