mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 05:43:36 -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
144 lines
7.6 KiB
Gherkin
144 lines
7.6 KiB
Gherkin
Feature: propfind a shares
|
|
As a user
|
|
I want to check the PROPFIND response
|
|
So that I can make sure that the response contains all the relevant values
|
|
|
|
Background:
|
|
Given these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
| Carol |
|
|
|
|
@issue-4421 @issue-9933
|
|
Scenario Outline: sharee PROPFIND same name shares shared by multiple users
|
|
Given using <dav-path-version> DAV path
|
|
And user "Alice" has uploaded file with content "to share" to "textfile.txt"
|
|
And user "Alice" has created folder "folderToShare"
|
|
And user "Carol" has uploaded file with content "to share" to "textfile.txt"
|
|
And user "Carol" has created folder "folderToShare"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | <resource> |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
And user "Carol" has sent the following resource share invitation:
|
|
| resource | <resource> |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "/" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the PROPFIND response should contain a space "Shares" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:name | Shares |
|
|
And as user "Brian" the PROPFIND response should contain a resource "<resource>" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:name | <resource> |
|
|
| oc:permissions | S |
|
|
And as user "Brian" the PROPFIND response should contain a resource "<resource-2>" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:name | <resource-2> |
|
|
| oc:permissions | S |
|
|
Examples:
|
|
| dav-path-version | resource | resource-2 |
|
|
| old | textfile.txt | textfile (1).txt |
|
|
| old | folderToShare | folderToShare (1) |
|
|
| new | textfile.txt | textfile (1).txt |
|
|
| new | folderToShare | folderToShare (1) |
|
|
|
|
@issue-4421 @issue-9933
|
|
Scenario: sharee PROPFIND a share having bracket in the name
|
|
Given using spaces DAV path
|
|
And user "Alice" has created folder "folderToShare"
|
|
And user "Alice" has uploaded file with content "to share" to "folderToShare/textfile.txt"
|
|
And user "Carol" has created folder "folderToShare"
|
|
And user "Carol" has uploaded file with content "to share" to "folderToShare/textfile.txt"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | folderToShare |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
And user "Carol" has sent the following resource share invitation:
|
|
| resource | folderToShare |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "folderToShare (1)" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the PROPFIND response should contain a resource "folderToShare (1)" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %share_id_pattern% |
|
|
| oc:name | folderToShare |
|
|
| oc:permissions | S |
|
|
And as user "Brian" the PROPFIND response should contain a resource "textfile.txt" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:name | textfile.txt |
|
|
| oc:permissions | |
|
|
|
|
@issue-8420
|
|
Scenario Outline: check file-id from PROPFIND with shared-with-me drive-item-id
|
|
Given using spaces DAV path
|
|
And user "Alice" has uploaded file with content "to share" to "/textfile1.txt"
|
|
And user "Alice" has created folder "folderToShare"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | <resource> |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
When user "Brian" sends PROPFIND request to space "Shares" with depth "1" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the key "oc:fileid" from PROPFIND response should match with shared-with-me drive-item-id of share "<resource>"
|
|
Examples:
|
|
| resource |
|
|
| textfile1.txt |
|
|
| folderToShare |
|
|
|
|
@issue-9933
|
|
Scenario Outline: check file-id of different PROPFIND requests to shared items
|
|
Given using <dav-path-version> DAV path
|
|
And user "Alice" has created folder "folderToShare"
|
|
And user "Alice" has uploaded file with content "lorem epsum" to "folderToShare/textfile.txt"
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | folderToShare |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | Viewer |
|
|
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "/" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the PROPFIND response should contain a resource "folderToShare" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | <pattern> |
|
|
| oc:file-parent | %self::oc:spaceid%!%uuidv4_pattern% |
|
|
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "folderToShare" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the PROPFIND response should contain a resource "folderToShare" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | <pattern> |
|
|
| oc:file-parent | %self::oc:spaceid%!%uuidv4_pattern% |
|
|
And as user "Brian" the PROPFIND response should contain a resource "folderToShare/textfile.txt" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:file-parent | %self::oc:spaceid%!%uuidv4_pattern% |
|
|
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "folderToShare/textfile.txt" using the WebDAV API
|
|
Then the HTTP status code should be "207"
|
|
And as user "Brian" the PROPFIND response should contain a resource "folderToShare/textfile.txt" with these key and value pairs:
|
|
| key | value |
|
|
| oc:fileid | %file_id_pattern% |
|
|
| oc:file-parent | %self::oc:spaceid%!%uuidv4_pattern% |
|
|
Examples:
|
|
| dav-path-version | pattern |
|
|
| old | %file_id_pattern% |
|
|
| new | %file_id_pattern% |
|
|
| spaces | %share_id_pattern% |
|