mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-16 09:09:51 -06:00
Merge pull request #9984 from owncloud/test-unsupported-files
[tests-only][full-ci] test: add test coverage for opening file with unsupported file fromat using /app/open-with-web endpoint
This commit is contained in:
@@ -493,3 +493,32 @@ Feature: collaboration (wopi)
|
||||
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=view |
|
||||
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=read |
|
||||
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=write |
|
||||
|
||||
@issue-9928
|
||||
Scenario Outline: open unsupported file format (open-with-web)
|
||||
Given user "Alice" has uploaded file "filesForUpload/simple.pdf" to "simple.pdf"
|
||||
And we save it into "FILEID"
|
||||
When user "Alice" sends HTTP method "POST" to URL "<app-endpoint>"
|
||||
Then the HTTP status code should be "500"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"code",
|
||||
"message"
|
||||
],
|
||||
"properties": {
|
||||
"code": {
|
||||
"const": "SERVER_ERROR"
|
||||
},
|
||||
"message": {
|
||||
"const": "Error contacting the requested application, please use a different one or try again later"
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| app-endpoint |
|
||||
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice |
|
||||
| /app/open-with-web?file_id=<<FILEID>> |
|
||||
|
||||
Reference in New Issue
Block a user