[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
@@ -18,6 +18,8 @@ Feature: Propfind test
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
When user "Alice" sends PROPFIND request to space "new-space" 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 "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:new-space |
@@ -34,6 +36,8 @@ Feature: Propfind test
| role | <role> |
When user "Brian" sends PROPFIND request to space "new-space" 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 "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:new-space |