Skip to content

Commit

Permalink
add api test for search tag by user
Browse files Browse the repository at this point in the history
  • Loading branch information
nabim777 committed Jul 3, 2023
1 parent f15ed6b commit db2e29a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/acceptance/features/apiGraph/fullSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,27 @@ Feature: full text search
| dav-path-version |
| old |
| new |


Scenario Outline: sharee searches a file tagged by sharee using tag
Given using <dav-path-version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "uploadFolder"
And user "Alice" has uploaded file with content "hello world" to "uploadFolder/file1.txt"
And user "Alice" has uploaded file with content "Namaste nepal" to "uploadFolder/file2.txt"
And user "Alice" has uploaded file with content "hello nepal" to "uploadFolder/file3.txt"
And user "Alice" has shared folder "/uploadFolder" with user "Brian"
And user "Brian" has accepted share "/uploadFolder" offered by user "Alice"
And user "Brian" has created the following tags for file "uploadFolder/file1.txt" of the space "Shares":
| tag1 |
And user "Brian" has created the following tags for file "uploadFolder/file2.txt" of the space "Shares":
| tag1 |
When user "Brian" searches for "Tags:tag1" using the WebDAV API
Then the HTTP status code should be "207"
And the search result of user "Brian" should contain only these files:
| file1.txt |
| file2.txt |
Examples:
| dav-path-version |
| old |
| new |

0 comments on commit db2e29a

Please sign in to comment.