Merge pull request #92 from opencloud-eu/fixPreviewTests

fix preview tests
This commit is contained in:
Viktor Scharf
2025-01-21 10:37:37 +01:00
committed by GitHub
11 changed files with 6 additions and 4 deletions

3
.vscode/launch.json vendored
View File

@@ -4,7 +4,8 @@
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch"
"request": "launch",
"port": 9003
},
{
"name": "Debug remote :40000",

View File

@@ -280,6 +280,7 @@ Feature: copy file
| sharee | Alice |
| shareType | user |
| permissionsRole | Secure Viewer |
And user "Alice" has a share "testshare" synced
When user "Alice" copies file "/testshare/testshare.txt" from space "Shares" to "/testshare.txt" inside space "Personal" using the WebDAV API
Then the HTTP status code should be "403"
And for user "Alice" the space "Personal" should not contain these entries:

View File

@@ -323,7 +323,7 @@ Feature: previews of files downloaded through the webdav API
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/testavatar.jpg"
When user "Alice" tries to download the preview of "/testavatar.jpg" with width "32" and height "32" and preview set to 0 using the WebDAV API
Then the HTTP status code should be "200"
And the downloaded image should be "1240" pixels wide and "648" pixels high
And the downloaded image should be "1402" pixels wide and "500" pixels high
Examples:
| dav-path-version |
| old |
@@ -376,8 +376,8 @@ Feature: previews of files downloaded through the webdav API
| THUMBNAILS_MAX_INPUT_WIDTH | 200 |
| THUMBNAILS_MAX_INPUT_HEIGHT | 200 |
And using <dav-path-version> DAV path
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
When user "Alice" downloads the preview of "/testimage.jpg" with width "36" and height "36" and processor thumbnail using the WebDAV API
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/testimage.png"
When user "Alice" downloads the preview of "/testimage.png" with width "36" and height "36" and processor thumbnail using the WebDAV API
Then the HTTP status code should be "403"
And the value of the item "/d:error/s:message" in the response should be "thumbnails: image is too large"
Examples:

View File

Binary file not shown.

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 834 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 713 B

After

Width:  |  Height:  |  Size: 666 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

After

Width:  |  Height:  |  Size: 794 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 834 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B

After

Width:  |  Height:  |  Size: 619 B