From df34b917ff84a874eb35ac5a1728319db8756036 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Mon, 26 Aug 2024 10:00:58 +0545 Subject: [PATCH] update url pattern regex --- tests/acceptance/features/apiAppProvider/appProvider.feature | 4 ++-- tests/acceptance/features/bootstrap/WebDav.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/apiAppProvider/appProvider.feature b/tests/acceptance/features/apiAppProvider/appProvider.feature index 840b874bc..859d9fb74 100644 --- a/tests/acceptance/features/apiAppProvider/appProvider.feature +++ b/tests/acceptance/features/apiAppProvider/appProvider.feature @@ -1,7 +1,7 @@ Feature: App Provider As a user I want to access files with collaboration service apps - So that I can get the content of the file + So that I can collaborate with other users Scenario Outline: open file with .odt extension with collaboration app @@ -22,7 +22,7 @@ Feature: App Provider "properties": { "app_url": { "type": "string", - "pattern": "^https:\\/\\/fakeoffice\\.owncloud\\.test\\/not\\/relevant\\?WOPISrc=http%3A%2F%2Fwopiserver%3A9300%2Fwopi%2Ffiles%2F[a-fA-F0-9]{64}$" + "pattern": "^https:\\/\\/(.*?)\\?WOPISrc=http%3A%2F%2F(.*?)%3A9300%2Fwopi%2Ffiles%2F[a-fA-F0-9]{64}$" }, "method": { "const": "POST" diff --git a/tests/acceptance/features/bootstrap/WebDav.php b/tests/acceptance/features/bootstrap/WebDav.php index 70f2ac38f..cbdadefa9 100644 --- a/tests/acceptance/features/bootstrap/WebDav.php +++ b/tests/acceptance/features/bootstrap/WebDav.php @@ -1743,7 +1743,7 @@ trait WebDav { * @param string $source * @param string $destination * - * @return void + * @return array */ public function userHasUploadedAFileTo(string $user, string $source, string $destination):array { $response = $this->uploadFile($user, $source, $destination, true);