mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-18 11:28:48 -06:00
Added PROPFIND tests as sharee with old davpath
This commit is contained in:
@@ -18,54 +18,54 @@ Feature: propfind a shares
|
||||
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 share invitation:
|
||||
| resource | <path> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Carol" has sent the following share invitation:
|
||||
| resource | <path> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Brian" sends PROPFIND request to space "Shares" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the "PROPFIND" response to user "Brian" should contain a space "Shares" with these key and value pairs:
|
||||
| key | value |
|
||||
| oc:fileid | UUIDof:Shares |
|
||||
And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs:
|
||||
| key | value |
|
||||
| oc:name | <path> |
|
||||
| oc:permissions | SR |
|
||||
| key | value |
|
||||
| oc:name | <resource> |
|
||||
| oc:permissions | SR |
|
||||
And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs:
|
||||
| key | value |
|
||||
| oc:name | <path2> |
|
||||
| oc:permissions | SR |
|
||||
| key | value |
|
||||
| oc:name | <resource-2> |
|
||||
| oc:permissions | SR |
|
||||
Examples:
|
||||
| path | path2 |
|
||||
| resource | resource-2 |
|
||||
| textfile.txt | textfile (1).txt |
|
||||
| folderToShare | folderToShare (1) |
|
||||
|
||||
@issue-4421
|
||||
Scenario Outline: sharee PROPFIND same name shares shared by multiple users using new dav path
|
||||
Given using new DAV path
|
||||
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 share invitation:
|
||||
| resource | <path> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Carol" has sent the following share invitation:
|
||||
| resource | <path> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Brian" sends PROPFIND request from the space "Shares" to the resource "Shares" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the "PROPFIND" response to user "Brian" should contain a space "Shares" with these key and value pairs:
|
||||
@@ -73,16 +73,18 @@ Feature: propfind a shares
|
||||
| oc:fileid | UUIDof:Shares |
|
||||
| oc:name | Shares |
|
||||
And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs:
|
||||
| key | value |
|
||||
| oc:fileid | UUIDof:<path> |
|
||||
| oc:name | <path> |
|
||||
| oc:permissions | SR |
|
||||
| key | value |
|
||||
| oc:fileid | UUIDof:<resource> |
|
||||
| oc:name | <resource> |
|
||||
| oc:permissions | SR |
|
||||
And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs:
|
||||
| key | value |
|
||||
| oc:fileid | UUIDof:<path2> |
|
||||
| oc:name | <path2> |
|
||||
| oc:permissions | SR |
|
||||
| key | value |
|
||||
| oc:fileid | UUIDof:<resource-2> |
|
||||
| oc:name | <resource-2> |
|
||||
| oc:permissions | SR |
|
||||
Examples:
|
||||
| path | path2 |
|
||||
| textfile.txt | textfile (1).txt |
|
||||
| folderToShare | folderToShare (1) |
|
||||
| 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) |
|
||||
|
||||
Reference in New Issue
Block a user