From 09c733b264fe064794cc6abe952f57aca5e642a1 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Tue, 5 Sep 2023 10:07:54 +0200 Subject: [PATCH] [test-only] apiTest. user cannot find not shared data (#7206) * test for 6000 issue * Update apiSpaceSearch.feature --- .../features/apiSearch/apiSpaceSearch.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/acceptance/features/apiSearch/apiSpaceSearch.feature b/tests/acceptance/features/apiSearch/apiSpaceSearch.feature index 800d6c6486..129030484c 100644 --- a/tests/acceptance/features/apiSearch/apiSpaceSearch.feature +++ b/tests/acceptance/features/apiSearch/apiSpaceSearch.feature @@ -136,3 +136,19 @@ Feature: Search | /SubFolder1/subFOLDER2/insideTheFolder.txt | But the search result of user "Brian" should not contain these entries: | /folderMain | + + @issue-enterprise-6000 + Scenario: sharee cannot find resources that are not shared + Given user "Alice" has created a folder "foo/sharedToBrian" in space "Alice Hansen" + And user "Alice" has created a folder "sharedToCarol" in space "Alice Hansen" + And user "Alice" has created a share inside of space "Alice Hansen" with settings: + | path | foo | + | shareWith | Brian | + | role | viewer | + And user "Brian" has accepted share "/foo" offered by user "Alice" + When user "Brian" searches for "shared" using the WebDAV API + Then the HTTP status code should be "207" + And the search result of user "Brian" should contain these entries: + | /sharedToBrian | + But the search result of user "Brian" should not contain these entries: + | /sharedToCarol |