From 50cb6c0cdd8aeffaba38d4a7d88b3f1ad0be4d37 Mon Sep 17 00:00:00 2001 From: nabim777 Date: Tue, 27 Jun 2023 16:15:47 +0545 Subject: [PATCH 1/2] add api test for search file through tag --- .../features/apiGraph/fullSearch.feature | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/acceptance/features/apiGraph/fullSearch.feature b/tests/acceptance/features/apiGraph/fullSearch.feature index b44828ec5ab..259102033cd 100644 --- a/tests/acceptance/features/apiGraph/fullSearch.feature +++ b/tests/acceptance/features/apiGraph/fullSearch.feature @@ -27,3 +27,27 @@ Feature: full text search | old | | new | | spaces | + + + Scenario Outline: as a sharee search a file tagged by sharer using tag + Given using 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 created the following tags for file "uploadFolder/file1.txt" of the space "Personal": + | tag1 | + And user "Alice" has created the following tags for file "uploadFolder/file2.txt" of the space "Personal": + | tag1 | + And user "Alice" has shared folder "/uploadFolder" with user "Brian" + And user "Brian" has accepted share "/uploadFolder" offered by user "Alice" + 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 | From aeff3170ff029dd466d99f342fa4947e9ea5cf09 Mon Sep 17 00:00:00 2001 From: nabim777 Date: Fri, 30 Jun 2023 10:14:18 +0545 Subject: [PATCH 2/2] review addresses --- tests/acceptance/features/apiGraph/fullSearch.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/apiGraph/fullSearch.feature b/tests/acceptance/features/apiGraph/fullSearch.feature index 259102033cd..759ec017687 100644 --- a/tests/acceptance/features/apiGraph/fullSearch.feature +++ b/tests/acceptance/features/apiGraph/fullSearch.feature @@ -29,7 +29,7 @@ Feature: full text search | spaces | - Scenario Outline: as a sharee search a file tagged by sharer using tag + Scenario Outline: sharee searches a file tagged by sharer using tag Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "uploadFolder"