[test-only] Api test. Checking X-Request-Id in response header (#6765)

* check X-Request-Id in response header

* style
This commit is contained in:
Viktor Scharf
2023-07-12 09:11:55 +02:00
committed by GitHub
parent f2498e1fdf
commit 3009ea192f
8 changed files with 33 additions and 4 deletions
@@ -20,6 +20,8 @@ Feature: REPORT request to Shares space
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "SubFolder1" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
| X-Request-Id | /^[a-f0-9!\-]{36}$/ |
And the "REPORT" response to user "Brian" should contain a mountpoint "folderMain" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:SubFolder1 |
@@ -40,6 +42,8 @@ Feature: REPORT request to Shares space
And user "Alice" has uploaded file with content "Not all those who wander are lost." to "/folderMain/SubFolder1/subFOLDER2/frodo.txt"
When user "Brian" searches for "frodo.txt" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
| X-Request-Id | /^[a-f0-9!\-]{36}$/ |
And the "REPORT" response to user "Brian" should contain a mountpoint "folderMain" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:SubFolder1/subFOLDER2/frodo.txt |
@@ -59,6 +63,8 @@ Feature: REPORT request to Shares space
Given using <dav-path-version> DAV path
When user "Brian" searches for "folderMain" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
| X-Request-Id | /^[a-f0-9!\-]{36}$/ |
And the search result should contain "0" entries
Examples:
| dav-path-version |