diff --git a/.drone.star b/.drone.star index ea271f4dc9..779746d9f6 100644 --- a/.drone.star +++ b/.drone.star @@ -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 diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index ea260e3693..abce6ba4c0 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -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) diff --git a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature index 11061b10f6..5dccdb552d 100644 --- a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature +++ b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature @@ -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 diff --git a/tests/acceptance/fixtures/unicode-fixture.png b/tests/acceptance/fixtures/unicode-fixture.png new file mode 100644 index 0000000000..04837c22b6 Binary files /dev/null and b/tests/acceptance/fixtures/unicode-fixture.png differ diff --git a/tests/config/drone/NotoSans.ttf b/tests/config/drone/NotoSans.ttf new file mode 100644 index 0000000000..7552fbe806 Binary files /dev/null and b/tests/config/drone/NotoSans.ttf differ diff --git a/tests/config/drone/fontsMap.json b/tests/config/drone/fontsMap.json new file mode 100644 index 0000000000..889781d339 --- /dev/null +++ b/tests/config/drone/fontsMap.json @@ -0,0 +1,3 @@ +{ + "defaultFont": "/drone/src/tests/config/drone/NotoSans.ttf" +}