From f0319652a911284affec72f7573f2809fddc7feb Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 10 Feb 2023 11:44:14 +0100 Subject: [PATCH] [test-only]ApiTest. increases permissions for one member of the group (#5536) * increases permissions for one member of the group * added indents --- .../apiSpacesShares/shareSpaces.feature | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/features/apiSpacesShares/shareSpaces.feature b/tests/acceptance/features/apiSpacesShares/shareSpaces.feature index a52c7727e..239105cf9 100644 --- a/tests/acceptance/features/apiSpacesShares/shareSpaces.feature +++ b/tests/acceptance/features/apiSpacesShares/shareSpaces.feature @@ -233,4 +233,20 @@ Feature: Share spaces When the administrator deletes group "group2" using the Graph API Then the HTTP status code should be "204" And the user "Brian" should not have a space called "share space" - And the user "Bob" should not have a space called "share space" \ No newline at end of file + And the user "Bob" should not have a space called "share space" + + + Scenario Outline: User increases permissions for one member of the group or for the entire group + Given group "sales" has been created + And the administrator has added a user "Brian" to the group "sales" using GraphApi + And user "Alice" has shared a space "share space" to with role "viewer" + When user "Brian" uploads a file inside space "share space" with content "Test" to "test.txt" using the WebDAV API + Then the HTTP status code should be "403" + When user "Alice" shares a space "share space" to with role "editor" + Then the HTTP status code should be "200" + When user "Brian" uploads a file inside space "share space" with content "Test" to "test.txt" using the WebDAV API + Then the HTTP status code should be "201" + Examples: + | firstRecipient | secondRecipient | + | group "sales" | user "Brian" | + | user "Brian" | group "sales" |