[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:
@@ -1655,6 +1655,7 @@ class SpacesContext implements Context {
|
||||
):void {
|
||||
$space = $this->getSpaceByName($user, $fromSpaceName);
|
||||
$headers['Destination'] = $this->destinationHeaderValueWithSpaceName($user, $fileDestination, $toSpaceName);
|
||||
$headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
|
||||
$fullUrl = $space["root"]["webDavUrl"] . '/' . ltrim($fileSource, "/");
|
||||
$this->featureContext->setResponse($this->copyFilesAndFoldersRequest($user, $fullUrl, $headers));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user