added test delete share access after the share role has been disabled

This commit is contained in:
Prajwol Amatya
2024-12-19 12:18:51 +05:45
parent 9a1015839b
commit 1e6455ca7c
2 changed files with 96 additions and 0 deletions
@@ -246,3 +246,19 @@ Feature: Remove access to a drive
When user "Alice" removes the last link share of space "projectSpace" using permissions endpoint of the Graph API
Then the HTTP status code should be "204"
And user "Alice" should not have any "link" permissions on space "projectSpace"
@env-config
Scenario: remove space share after the share role Space Editor Without Versions has been disabled
Given using spaces DAV path
And the administrator has enabled the permissions role "Space Editor Without Versions"
And the administrator has assigned the role "Space 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 sent the following space share invitation:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Editor Without Versions |
And the administrator has disabled the permissions role "Space Editor Without Versions"
When user "Alice" removes the access of user "Brian" from space "new-space" using root endpoint of the Graph API
Then the HTTP status code should be "204"
And the user "Brian" should not have a space called "NewSpace"