Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor committed Jan 24, 2024
1 parent 2170e3a commit 7651160
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/acceptance/features/apiCors/cors.feature
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Feature: CORS headers


Scenario: CORS headers should be returned when setting CORS domain sending origin header in the Graph api
When user "Alice" lists all available spaces with headers via the Graph API
When user "Alice" lists all available spaces with headers using the Graph API
| header | value |
| Origin | https://aphno.badal |
Then the HTTP status code should be "200"
Expand All @@ -82,15 +82,15 @@ Feature: CORS headers

@issue-8231
Scenario: CORS headers should be returned when setting CORS domain sending origin header in the Webdav api
When user "Alice" sends PROPFIND request to space "Alice Hansen" with headers via the WebDAV API
When user "Alice" sends PROPFIND request to space "Alice Hansen" with headers using the WebDAV API
| header | value |
| Origin | https://aphno.badal |
Then the HTTP status code should be "207"
And the following headers should be set
| header | value |
| Access-Control-Allow-Origin | https://aphno.badal |


Scenario Outline: CORS headers should be returned when setting CORS domain sending origin header in the OCS api
Given using OCS API version "<ocs_api_version>"
When user "Alice" sends HTTP method "GET" to OCS API endpoint "<endpoint>" with headers
Expand All @@ -99,8 +99,8 @@ Feature: CORS headers
Then the OCS status code should be "<ocs-code>"
And the HTTP status code should be "<http-code>"
And the following headers should be set
| header | value |
| Access-Control-Allow-Origin | https://aphno.badal |
| header | value |
| Access-Control-Allow-Origin | https://aphno.badal |
Examples:
| ocs_api_version | endpoint | ocs-code | http-code |
| 1 | /config | 100 | 200 |
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/features/bootstrap/SpacesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function theUserListsAllHisAvailableSpacesUsingTheGraphApi(string $user,
}

/**
* @When /^user "([^"]*)" lists all available spaces with headers via the Graph API$/
* @When /^user "([^"]*)" lists all available spaces with headers using the Graph API$/
*
* @param string $user
* @param TableNode $headersTable
Expand Down Expand Up @@ -3554,7 +3554,7 @@ public function userSendsPropfindRequestToSpace(string $user, string $spaceName,
}

/**
* @When /^user "([^"]*)" sends PROPFIND request to space "([^"]*)" with headers via the WebDAV API$/
* @When /^user "([^"]*)" sends PROPFIND request to space "([^"]*)" with headers using the WebDAV API$/
*
* @param string $user
* @param string $spaceName
Expand Down

0 comments on commit 7651160

Please sign in to comment.