mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-18 05:28:40 -04:00
[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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
BIN
tests/acceptance/fixtures/unicode-fixture.png
Normal file
BIN
tests/acceptance/fixtures/unicode-fixture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 620 B |
BIN
tests/config/drone/NotoSans.ttf
Normal file
BIN
tests/config/drone/NotoSans.ttf
Normal file
Binary file not shown.
3
tests/config/drone/fontsMap.json
Normal file
3
tests/config/drone/fontsMap.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"defaultFont": "/drone/src/tests/config/drone/NotoSans.ttf"
|
||||
}
|
||||
Reference in New Issue
Block a user