-
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.
Merge pull request #37974 from owncloud/refactor-bug-demonstration
[Tests-Only]Refactored some oC10 bug demonstration scenarios in api test
- Loading branch information
Showing
70 changed files
with
1,597 additions
and
403 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
23 changes: 23 additions & 0 deletions
23
tests/acceptance/features/apiAuth/corsOc10Issue34664.feature
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@api @notToImplementOnOCIS | ||
Feature: CORS headers current oC10 behavior for issue-34664 | ||
|
||
@issue-34664 | ||
Scenario Outline: CORS headers should be returned when setting CORS domain sending Origin header | ||
Given user "Alice" has been created with default attributes and skeleton files | ||
And using OCS API version "<ocs_api_version>" | ||
And user "Alice" has added "https://aphno.badal" to the list of personal CORS domains | ||
When user "Alice" sends HTTP method "GET" to OCS API endpoint "<endpoint>" with headers | ||
| header | value | | ||
| Origin | https://aphno.badal | | ||
Then the OCS status code should be "<ocs-code>" | ||
And the HTTP status code should be "<http-code>" | ||
Then the following headers should not be set | ||
| header | | ||
| Access-Control-Allow-Headers | | ||
| Access-Control-Expose-Headers | | ||
| Access-Control-Allow-Origin | | ||
| Access-Control-Allow-Methods | | ||
Examples: | ||
| ocs_api_version | endpoint | ocs-code | http-code | | ||
| 1 | /config | 100 | 200 | | ||
| 2 | /config | 200 | 200 | |
Oops, something went wrong.