mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
Shares are synced (auto-accepted) asynchronously by the sharing service, so the scenarios waited for it with "user ... has a share ... synced" after each share. Where they didn't, the following steps could race with it, e.g. a hide sent before the auto-accept was overwritten by it. The Given steps that create user and group shares now wait until the share is synced for each user it was sent to (the members of a group), unless the user has auto-sync turned off. The "has a share ... synced" steps that only followed such a Given step are removed, and the line references of the expected failures are updated. Assisted-by: Claude Code:claude-opus-5-5
30 lines
1.2 KiB
Gherkin
30 lines
1.2 KiB
Gherkin
Feature: deleting resources using file id
|
|
As a user
|
|
I want to be able to delete resources using file id
|
|
So that I can remove unwanted data
|
|
|
|
Background:
|
|
Given using spaces DAV path
|
|
And these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
|
|
@issue-3770
|
|
Scenario: sharee with the Editor role tries to delete the shared folder using its id
|
|
Given user "Alice" has created folder "folderToShare"
|
|
And user "Alice" has stored id of folder "folderToShare"
|
|
And we save it into "FOLDERID"
|
|
And user "Alice" has uploaded file with content "inside" to "folderToShare/inside.txt"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | folderToShare |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
When user "Brian" deletes folder "folderToShare" from space "Personal" using file-id "<<FOLDERID>>"
|
|
Then the HTTP status code should be "403"
|
|
And as "Alice" folder "folderToShare" should exist
|
|
And as "Alice" file "folderToShare/inside.txt" should exist
|
|
And as "Brian" folder "/Shares/folderToShare" should exist
|