From cfd235068df65a6147fd2282436df32ecbeee0cc Mon Sep 17 00:00:00 2001 From: Nalem7 <61624650+nabim777@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:00:29 +0545 Subject: [PATCH] add test for downloading resouces by group user when auto sync is disabled (#8754) --- .../getFileByFileId.feature | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/tests/acceptance/features/apiSpacesDavOperation/getFileByFileId.feature b/tests/acceptance/features/apiSpacesDavOperation/getFileByFileId.feature index 6d229a8318..d462bcb8f0 100644 --- a/tests/acceptance/features/apiSpacesDavOperation/getFileByFileId.feature +++ b/tests/acceptance/features/apiSpacesDavOperation/getFileByFileId.feature @@ -145,3 +145,50 @@ Feature: accessing files using file id | dav-path | | /remote.php/dav/spaces/<> | | /dav/spaces/<> | + + + Scenario Outline: user who is member of group gets content of a shared file when sync is disable + Given user "Brian" has been created with default attributes and without skeleton files + And user "Brian" has disabled the auto-sync share + And user "Alice" has uploaded file with content "some data" to "/textfile.txt" + And we save it into "FILEID" + And the administrator has assigned the role "Admin" to user "Alice" using the Graph API + And user "Alice" has created a group "grp1" using the Graph API + And user "Brian" has been added to group "grp1" + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" sends HTTP method "GET" to URL "" + Then the HTTP status code should be "200" + And the downloaded content should be "some data" + Examples: + | dav-path | + | /remote.php/dav/spaces/<> | + | /dav/spaces/<> | + + + Scenario Outline: user who is member of group gets content of a shared folder when sync is disable + Given user "Brian" has been created with default attributes and without skeleton files + And user "Brian" has disabled the auto-sync share + And user "Alice" has created folder "uploadFolder" + And user "Alice" has uploaded file with content "some data" to "uploadFolder/textfile.txt" + And we save it into "FILEID" + And the administrator has assigned the role "Admin" to user "Alice" using the Graph API + And user "Alice" has created a group "grp1" using the Graph API + And user "Brian" has been added to group "grp1" + And user "Alice" has sent the following share invitation: + | resource | uploadFolder | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" sends HTTP method "GET" to URL "" + Then the HTTP status code should be "200" + And the downloaded content should be "some data" + Examples: + | dav-path | + | /remote.php/dav/spaces/<> | + | /dav/spaces/<> |