[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
@@ -58,6 +58,7 @@ class SearchContext implements Context {
$user = $this->featureContext->getActualUsername($user);
$baseUrl = $this->featureContext->getBaseUrl();
$password = $this->featureContext->getPasswordForUser($user);
$headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
$body
= "<?xml version='1.0' encoding='utf-8' ?>\n" .
" <oc:search-files xmlns:a='DAV:' xmlns:oc='http://owncloud.org/ns' >\n" .
@@ -83,7 +84,7 @@ class SearchContext implements Context {
$password,
"REPORT",
"/",
null,
$headers,
$this->featureContext->getStepLineRef(),
$body,
$this->featureContext->getDavPathVersion()