update url pattern regex

This commit is contained in:
Prajwol Amatya
2024-08-26 10:01:58 +05:45
parent 4489ea637b
commit df34b917ff
2 changed files with 3 additions and 3 deletions
@@ -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"
@@ -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);