mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 14:39:23 -05:00
* test: wait for the share sync in the Given steps that create shares 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 * test: don't wait for the sync of a share with the role Denied A share with the role Denied gives no access, so it never shows up in the shared-with-me list of the sharee, and the wait for its sync timed out. Assisted-by: Claude Code:claude-opus-5-5
49 lines
2.7 KiB
Gherkin
49 lines
2.7 KiB
Gherkin
Feature: access the space of the share owner using the drive id
|
|
As a user
|
|
I want the sharee to only access the shared resource
|
|
So that the rest of my space stays private
|
|
|
|
Background:
|
|
Given using spaces DAV path
|
|
And these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
And user "Alice" has created folder "folderToShare"
|
|
And user "Alice" has uploaded file with content "inside" to "folderToShare/inside.txt"
|
|
And user "Alice" has uploaded file with content "private" to "private.txt"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | folderToShare |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
|
|
|
|
Scenario: sharee cannot access the space of the owner using its drive id
|
|
When user "Brian" lists the content of the space of the owner of share "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "404"
|
|
When user "Brian" downloads file "private.txt" from the space of the owner of share "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "404"
|
|
When user "Brian" uploads content "uploaded by Brian" to file "brian.txt" in the space of the owner of share "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "404"
|
|
When user "Brian" creates folder "brianFolder" in the space of the owner of share "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "404"
|
|
When user "Brian" deletes file "private.txt" from the space of the owner of share "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "404"
|
|
And for user "Alice" the content of the file "private.txt" of the space "Personal" should be "private"
|
|
And for user "Alice" folder "/" of the space "Personal" should not contain these files:
|
|
| brian.txt |
|
|
| brianFolder |
|
|
|
|
|
|
Scenario: sharee cannot copy or move a file out of the shared folder into the space of the owner
|
|
When user "Brian" tries to copy file "inside.txt" from share "folderToShare" to "copied.txt" in the space of the owner using the WebDAV API
|
|
Then the HTTP status code should be "409"
|
|
When user "Brian" tries to move file "inside.txt" from share "folderToShare" to "moved.txt" in the space of the owner using the WebDAV API
|
|
Then the HTTP status code should be "409"
|
|
And for user "Alice" the content of the file "folderToShare/inside.txt" of the space "Personal" should be "inside"
|
|
And for user "Alice" folder "/" of the space "Personal" should not contain these files:
|
|
| copied.txt |
|
|
| moved.txt |
|