mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-08 03:42:10 -04:00
* feat: add new editor roles * add tests for additional roles * fix: disable new roles in config * adjust tests * fix listGrantsShareRole test --------- Co-authored-by: v.scharf <v.scharf@opencloud.eu>
29 lines
1.5 KiB
Gherkin
29 lines
1.5 KiB
Gherkin
@env-config
|
|
Feature: an user shares resources
|
|
As a user
|
|
I don't want space editor to access deleted files
|
|
So that they can't restore them
|
|
|
|
|
|
Scenario: sharee checks trashbin after file is deleted
|
|
Given these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
And using spaces DAV path
|
|
And the administrator has enabled the permissions role "Space Editor Without Trashbin"
|
|
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 uploaded a file inside space "new-space" with content "hello world" to "textfile.txt"
|
|
And user "Alice" has sent the following space share invitation:
|
|
| space | new-space |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Space Editor Without Trashbin |
|
|
And user "Brian" has removed the file "textfile.txt" from space "new-space"
|
|
When user "Brian" tries to list all deleted files in the trash bin of the space "new-space"
|
|
Then the HTTP status code should be "403"
|
|
When user "Brian" tries to restore the file "textfile.txt" from the trash of the space "new-space" to "/textfile.txt"
|
|
Then the HTTP status code should be "403"
|
|
And as "Alice" file "textfile.txt" should exist in the trashbin of the space "new-space"
|