-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
828a56d
commit 652b105
Showing
5 changed files
with
127 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
@api @TestAlsoOnExternalUserBackend | ||
Feature: auth | ||
|
||
@issue-32068 | ||
Scenario Outline: send PUT requests to OCS endpoints as admin with wrong password | ||
Given using OCS API version "<ocs_api_version>" | ||
When the administrator sends HTTP method "PUT" to OCS API endpoint "<endpoint>" with body using password "invalid" | ||
| data | doesnotmatter | | ||
Then the OCS status code should be "<ocs-code>" | ||
And the HTTP status code should be "<http-code>" | ||
Examples: | ||
| ocs_api_version |endpoint | ocs-code | http-code | | ||
| 1 |/cloud/users/user0 | 997 | 401 | | ||
| 2 |/cloud/users/user0 | 997 | 401 | | ||
| 1 |/cloud/users/user0/disable | 997 | 401 | | ||
| 2 |/cloud/users/user0/disable | 997 | 401 | | ||
| 1 |/cloud/users/user0/enable | 997 | 401 | | ||
| 2 |/cloud/users/user0/enable | 997 | 401 | | ||
| 1 |/apps/files_sharing/api/v1/shares/123 | 997 | 401 | | ||
| 2 |/apps/files_sharing/api/v1/shares/123 | 997 | 401 | | ||
|
||
|
||
Scenario: send PUT request to OCS endpoints as admin with wrong password | ||
When administrator sends request these endpoints with "PUT" with body using password "invalid" then the status codes should be as listed | ||
| endpoint | ocs-code | http-code | body | | ||
| /ocs/v1.php/cloud/users/user0 | 997 | 401 | doesnotmatter | | ||
| /ocs/v2.php/cloud/users/user0 | 997 | 401 | doesnotmatter | | ||
| /ocs/v1.php/cloud/users/user0/disable | 997 | 401 | doesnotmatter | | ||
| /ocs/v2.php/cloud/users/user0/disable | 997 | 401 | doesnotmatter | | ||
| /ocs/v1.php/cloud/users/user0/enable | 997 | 401 | doesnotmatter | | ||
| /ocs/v2.php/cloud/users/user0/enable | 997 | 401 | doesnotmatter | | ||
| /ocs/v1.php/apps/files_sharing/api/v1/shares/123 | 997 | 401 | doesnotmatter | | ||
| /ocs/v2.php/apps/files_sharing/api/v1/shares/123 | 997 | 401 | doesnotmatter | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters