[tests-only] Run tests with default propfind depth infinity config (#7334)
* use default config for OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY * remove unnecessary steps * use default propfind depth infinity value * use correct step to check the resources * use correct step to check the resources * cover depth:infinity enabled test cases * fix steps * fix scenario steps * update expected failure list * add depth infinity test suite to ci * update existing tests only * remove test with depth:infinity
This commit is contained in:
@@ -191,7 +191,7 @@ class WebDavHelper {
|
||||
?string $path,
|
||||
?array $properties,
|
||||
?string $xRequestId = '',
|
||||
?string $folderDepth = '0',
|
||||
?string $folderDepth = '1',
|
||||
?string $type = "files",
|
||||
?int $davPathVersionToUse = self::DAV_VERSION_NEW,
|
||||
?string $doDavRequestAsUser = null
|
||||
@@ -199,7 +199,10 @@ class WebDavHelper {
|
||||
$body = self::getBodyForPropfind($properties);
|
||||
$folderDepth = (string) $folderDepth;
|
||||
if ($folderDepth !== '0' && $folderDepth !== '1' && $folderDepth !== 'infinity') {
|
||||
throw new InvalidArgumentException('Invalid depth value ' . $folderDepth);
|
||||
if ($folderDepth !== '') {
|
||||
throw new InvalidArgumentException('Invalid depth value ' . $folderDepth);
|
||||
}
|
||||
$folderDepth = '1'; // oCIS server's default value
|
||||
}
|
||||
$headers['Depth'] = $folderDepth;
|
||||
return self::makeDavRequest(
|
||||
|
||||
Reference in New Issue
Block a user