Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tests/acceptance/features/apiSearch1/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,16 @@ Feature: Search
| name:"*der2" | subFOLDER2 | pattern 'name:""' (with quotes) |

@issue-7812 @issue-8442 @issue-10329
Scenario: try to search with invalid patterns
Scenario Outline: try to search with invalid patterns
Given using spaces DAV path
And user "Alice" has uploaded file with content "test file" to "testFile.txt"
When user "Alice" searches for 'AND mediatype:document' using the WebDAV API
When user "Alice" searches for "<pattern>" using the WebDAV API
Then the HTTP status code should be "400"
And the value of the item "/d:error/s:message" in the response should be "error: bad request: the operator 'AND' is missing an operand"
And the value of the item "/d:error/s:message" in the response should be "error: bad request: the operator '<operator>' is missing an operand"
Examples:
| pattern | operator |
| AND mediatype:document | AND |
| alice NOT | NOT |

@issue-10329
Scenario Outline: search a file globally (in all spaces)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Feature: download file
| spaces | "file #2.txt" |
| spaces | "file ?2.pdf" |

@issue-2852
@issue-2852 @skipOnReva
Scenario Outline: download a file whose name contains a literal "%" via its oc:downloadURL
Given using <dav-path-version> DAV path
And user "Alice" has uploaded file with content "test file" to "firstword%20secondword.txt"
Expand Down
Loading