Add etag propagation for delete files folder for spaces

This commit is contained in:
sagargurung1001@gmail.com
2022-08-22 09:22:07 +05:45
parent 1455617291
commit e17d43a940
2 changed files with 117 additions and 10 deletions
@@ -2215,7 +2215,7 @@ class SpacesContext implements Context {
string $spaceName
): void {
$space = $this->getSpaceByName($user, $spaceName);
$spaceWebDavUrl = $space["root"]["webDavUrl"] . '/' . $object;
$spaceWebDavUrl = $space["root"]["webDavUrl"] . '/' . ltrim($object, "/");
$this->featureContext->setResponse(
HttpRequestHelper::delete(
$spaceWebDavUrl,
@@ -3035,7 +3035,7 @@ class SpacesContext implements Context {
Assert::assertEmpty($responseArray, __METHOD__ . ' Response should be empty');
}
}
/**
* @When /^user "([^"]*)" gets the following properties of (?:file|folder|entry|resource) "([^"]*)" inside space "([^"]*)" using the WebDAV API$/
*