[tests-only][full-ci] Fix preview test scenario (#6931)

* fix preview test scenario

* setup ocis with custom fonts

* remove passing test from expected-failure
This commit is contained in:
Sawjan Gurung
2023-08-01 17:33:43 +05:45
committed by GitHub
parent efd2c42655
commit d7dd979897
6 changed files with 7 additions and 6 deletions

View File

@@ -1953,6 +1953,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
"OCIS_DECOMPOSEDFS_METADATA_BACKEND": "messagepack",
"FRONTEND_OCS_ENABLE_DENIALS": True,
"OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY": True,
# fonts map for txt thumbnails (including unicode support)
"THUMBNAILS_TXT_FONTMAP_FILE": "%s/tests/config/drone/fontsMap.json" % (dirs["base"]),
}
if tika_enabled:
environment["FRONTEND_FULL_TEXT_SEARCH_ENABLED"] = True

View File

@@ -558,10 +558,6 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers
- [coreApiWebdavMove2/moveFileToBlacklistedName.feature:19](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFileToBlacklistedName.feature#L19)
- [coreApiWebdavMove2/moveFileToBlacklistedName.feature:20](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFileToBlacklistedName.feature#L20)
#### [Preview of text file with UTF content does not render correctly](https://github.com/owncloud/ocis/issues/2570)
- [coreApiWebdavPreviews/previews.feature:141](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L141)
#### [Share path in the response is different between share states](https://github.com/owncloud/ocis/issues/2540)
- [coreApiShareManagementToShares/acceptShares.feature:28](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L28)

View File

@@ -140,11 +140,11 @@ Feature: previews of files downloaded through the webdav API
Scenario: preview content should be updated if the file content is updated (content with UTF chars)
Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt"
And user "Alice" has uploaded file with content "िि " to "/lorem.txt"
And user "Alice" has uploaded file with content " ि िि" to "/lorem.txt"
When user "Alice" downloads the preview of "/lorem.txt" with width "32" and height "32" using the WebDAV API
Then the HTTP status code should be "200"
And the downloaded image should be "32" pixels wide and "32" pixels high
And the downloaded preview content should match with "िि-.png" fixtures preview content
And the downloaded preview content should match with "unicode-fixture.png" fixtures preview content
Scenario: updates to a file should change the preview for both sharees and sharers

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

View File

Binary file not shown.

View File

@@ -0,0 +1,3 @@
{
"defaultFont": "/drone/src/tests/config/drone/NotoSans.ttf"
}