-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tests/acceptance/features/apiFullTextSearch/search.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@api | ||
Feature: full text search | ||
As a user | ||
I want to do full text search | ||
So that I can find the files with the content I am looking for | ||
|
||
Background: | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
|
||
Scenario Outline: search files by content | ||
Given using <dav-path-version> DAV path | ||
And user "Alice" has uploaded file with content "hello world" to "file1.txt" | ||
And user "Alice" has uploaded file with content "Namaste nepal" to "file2.txt" | ||
And user "Alice" has uploaded file with content "hello nepal" to "file3.txt" | ||
When user "Alice" searches for "Content:hello" using the WebDAV API | ||
Then the HTTP status code should be "207" | ||
And the search result of user "Alice" should contain only these files: | ||
| file1.txt | | ||
| file3.txt | | ||
Examples: | ||
| dav-path-version | | ||
| old | | ||
| new | | ||
| spaces | |