test: make remote.php configurable

test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
This commit is contained in:
Saw-jan
2024-10-21 16:57:58 +05:45
parent 273915506e
commit f86d137f87
100 changed files with 2484 additions and 2329 deletions
+4 -2
View File
@@ -31,6 +31,7 @@ use TestHelpers\OcsApiHelper;
use TestHelpers\SharingHelper;
use TestHelpers\HttpRequestHelper;
use TestHelpers\TranslationHelper;
use TestHelpers\WebDavHelper;
use GuzzleHttp\Exception\GuzzleException;
/**
@@ -3245,8 +3246,9 @@ trait Sharing {
* @return ResponseInterface
*/
public function getPublicPreviewOfFile(string $fileName, string $token):ResponseInterface {
$url = $this->getBaseUrl() .
"/remote.php/dav/public-files/$token/$fileName?preview=1";
$baseUrl = $this->getBaseUrl();
$davPath = WebdavHelper::getDavPath($this->getDavPathVersion(), $token, "public-files");
$url = "{$baseUrl}/{$davPath}/$fileName?preview=1";
return HttpRequestHelper::get(
$url,
$this->getStepLineRef()