From c2ab6666a5b9bbba899fdf9486f8d9bae6bc12b4 Mon Sep 17 00:00:00 2001 From: nirajacharya2 <122071597+nirajacharya2@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:58:07 +0545 Subject: [PATCH] adding tests for sharing a file inside project space with all allowed roles from list permissions response (#8933) --- .../features/apiSharingNg/listPermissions.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/listPermissions.feature b/tests/acceptance/features/apiSharingNg/listPermissions.feature index a642defa3c..6ea4e06c22 100644 --- a/tests/acceptance/features/apiSharingNg/listPermissions.feature +++ b/tests/acceptance/features/apiSharingNg/listPermissions.feature @@ -1079,3 +1079,18 @@ Feature: List a sharing permissions | drive | | Personal | | Shares | + + + Scenario: user sends share invitation with all allowed roles for a file in project space + Given using spaces DAV path + And the administrator has assigned the role "Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "new-space" with the default quota using the Graph API + And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile.txt" + And user "Brian" has been created with default attributes and without skeleton files + When user "Alice" gets permissions list for file "textfile.txt" of the space "new-space" using the Graph API + Then the HTTP status code should be "200" + And user "Alice" should be able to send share invitation with all allowed permission roles + | resource | textfile.txt | + | space | new-space | + | sharee | Brian | + | shareType | user |