fix preview tests
@@ -4,7 +4,8 @@
|
|||||||
{
|
{
|
||||||
"name": "Listen for Xdebug",
|
"name": "Listen for Xdebug",
|
||||||
"type": "php",
|
"type": "php",
|
||||||
"request": "launch"
|
"request": "launch",
|
||||||
|
"port": 9003
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Debug remote :40000",
|
"name": "Debug remote :40000",
|
||||||
|
|||||||
@@ -280,6 +280,7 @@ Feature: copy file
|
|||||||
| sharee | Alice |
|
| sharee | Alice |
|
||||||
| shareType | user |
|
| shareType | user |
|
||||||
| permissionsRole | Secure Viewer |
|
| 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
|
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"
|
Then the HTTP status code should be "403"
|
||||||
And for user "Alice" the space "Personal" should not contain these entries:
|
And for user "Alice" the space "Personal" should not contain these entries:
|
||||||
|
|||||||
@@ -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"
|
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
|
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"
|
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:
|
Examples:
|
||||||
| dav-path-version |
|
| dav-path-version |
|
||||||
| old |
|
| old |
|
||||||
@@ -376,8 +376,8 @@ Feature: previews of files downloaded through the webdav API
|
|||||||
| THUMBNAILS_MAX_INPUT_WIDTH | 200 |
|
| THUMBNAILS_MAX_INPUT_WIDTH | 200 |
|
||||||
| THUMBNAILS_MAX_INPUT_HEIGHT | 200 |
|
| THUMBNAILS_MAX_INPUT_HEIGHT | 200 |
|
||||||
And using <dav-path-version> DAV path
|
And using <dav-path-version> DAV path
|
||||||
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
|
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/testimage.png"
|
||||||
When user "Alice" downloads the preview of "/testimage.jpg" with width "36" and height "36" and processor thumbnail using the WebDAV API
|
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"
|
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"
|
And the value of the item "/d:error/s:message" in the response should be "thumbnails: image is too large"
|
||||||
Examples:
|
Examples:
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 874 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 666 B |
|
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 794 B |
|
Before Width: | Height: | Size: 874 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 619 B |