2023-01-25 16:59:56 +05:45
|
|
|
Feature: REPORT request to Shares space
|
2023-04-17 17:05:12 +05:45
|
|
|
As a user
|
|
|
|
|
I want to check the share REPORT response
|
|
|
|
|
So that I can make sure that the response contains all the relevant details for shares
|
2023-01-25 16:59:56 +05:45
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-01-25 16:59:56 +05:45
|
|
|
| username |
|
|
|
|
|
| Alice |
|
|
|
|
|
| Brian |
|
|
|
|
|
And user "Alice" has created folder "/folderMain"
|
|
|
|
|
And user "Alice" has created folder "/folderMain/SubFolder1"
|
|
|
|
|
And user "Alice" has created folder "/folderMain/SubFolder1/subFOLDER2"
|
2024-05-08 14:22:52 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
2024-05-02 15:46:14 +05:45
|
|
|
| resource | /folderMain |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Viewer |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "folderMain" synced
|
2023-01-25 16:59:56 +05:45
|
|
|
|
|
|
|
|
|
2023-04-17 17:05:12 +05:45
|
|
|
Scenario Outline: check the REPORT response of the found folder
|
2023-07-12 12:42:32 +05:45
|
|
|
Given using <dav-path-version> DAV path
|
2023-01-25 16:59:56 +05:45
|
|
|
When user "Brian" searches for "SubFolder1" using the WebDAV API
|
|
|
|
|
Then the HTTP status code should be "207"
|
2023-07-12 09:11:55 +02:00
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
|
|
|
|
And as user "Brian" the REPORT response should contain a resource "SubFolder1" with these key and value pairs:
|
2024-07-09 17:06:32 +05:45
|
|
|
| key | value |
|
2024-10-01 12:58:30 +05:45
|
|
|
| oc:fileid | %file_id_pattern% |
|
|
|
|
|
| oc:file-parent | %file_id_pattern% |
|
2024-07-09 17:06:32 +05:45
|
|
|
| oc:shareroot | /folderMain |
|
|
|
|
|
| oc:name | SubFolder1 |
|
|
|
|
|
| d:getcontenttype | httpd/unix-directory |
|
|
|
|
|
| oc:permissions | S |
|
2024-10-01 12:58:30 +05:45
|
|
|
| oc:remote-item-id | %file_id_pattern% |
|
2026-07-02 17:17:32 +05:45
|
|
|
| oc:spaceid | %space_id_pattern% |
|
2023-01-25 16:59:56 +05:45
|
|
|
Examples:
|
2023-07-12 12:42:32 +05:45
|
|
|
| dav-path-version |
|
|
|
|
|
| old |
|
|
|
|
|
| new |
|
2024-11-07 14:12:16 +05:45
|
|
|
| spaces |
|
2023-01-25 16:59:56 +05:45
|
|
|
|
|
|
|
|
|
2023-04-17 17:05:12 +05:45
|
|
|
Scenario Outline: check the REPORT response of the found file
|
2023-07-12 12:42:32 +05:45
|
|
|
Given using <dav-path-version> DAV path
|
2023-01-25 16:59:56 +05:45
|
|
|
And user "Alice" has uploaded file with content "Not all those who wander are lost." to "/folderMain/SubFolder1/subFOLDER2/frodo.txt"
|
|
|
|
|
When user "Brian" searches for "frodo.txt" using the WebDAV API
|
|
|
|
|
Then the HTTP status code should be "207"
|
2023-07-12 09:11:55 +02:00
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
|
|
|
|
And as user "Brian" the REPORT response should contain a resource "frodo.txt" with these key and value pairs:
|
2026-07-02 17:17:32 +05:45
|
|
|
| key | value |
|
|
|
|
|
| oc:fileid | %file_id_pattern% |
|
|
|
|
|
| oc:file-parent | %file_id_pattern% |
|
|
|
|
|
| oc:shareroot | /folderMain |
|
|
|
|
|
| oc:name | frodo.txt |
|
|
|
|
|
| d:getcontenttype | text/plain |
|
|
|
|
|
| oc:permissions | S |
|
|
|
|
|
| d:getcontentlength | 34 |
|
|
|
|
|
| oc:remote-item-id | %file_id_pattern% |
|
|
|
|
|
| oc:spaceid | %space_id_pattern% |
|
2023-01-25 16:59:56 +05:45
|
|
|
Examples:
|
2023-07-12 12:42:32 +05:45
|
|
|
| dav-path-version |
|
|
|
|
|
| old |
|
|
|
|
|
| new |
|
2024-11-07 14:12:16 +05:45
|
|
|
| spaces |
|
2023-04-18 16:46:11 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: search for the shared folder when share is not accepted
|
2023-10-17 16:29:05 +02:00
|
|
|
Given user "Brian" has disabled auto-accepting
|
|
|
|
|
And using <dav-path-version> DAV path
|
|
|
|
|
And user "Alice" has created folder "/folderToBrian"
|
2024-05-08 14:22:52 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
2024-05-02 15:46:14 +05:45
|
|
|
| resource | /folderToBrian |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Viewer |
|
2023-10-17 16:29:05 +02:00
|
|
|
When user "Brian" searches for "folderToBrian" using the WebDAV API
|
2023-04-18 16:46:11 +05:45
|
|
|
Then the HTTP status code should be "207"
|
2023-07-12 09:11:55 +02:00
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
2023-04-18 16:46:11 +05:45
|
|
|
And the search result should contain "0" entries
|
|
|
|
|
Examples:
|
2023-07-12 12:42:32 +05:45
|
|
|
| dav-path-version |
|
|
|
|
|
| old |
|
|
|
|
|
| new |
|
2024-11-07 14:12:16 +05:45
|
|
|
| spaces |
|
2024-07-22 15:57:45 +02:00
|
|
|
|
2025-09-17 10:35:26 +02:00
|
|
|
@issue-9607 @env-config
|
2024-07-22 15:57:45 +02:00
|
|
|
Scenario Outline: check the REPORT response of a folder shared with secure viewer role
|
|
|
|
|
Given using <dav-path-version> DAV path
|
2024-10-18 16:50:47 +05:45
|
|
|
And the administrator has enabled the permissions role "Secure Viewer"
|
2024-07-22 15:57:45 +02:00
|
|
|
And user "Alice" has created folder "/secureFolder"
|
|
|
|
|
And user "Alice" has uploaded file with content "secure content" to "/secureFolder/secure.txt"
|
|
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | secureFolder |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
2024-10-18 16:50:47 +05:45
|
|
|
| permissionsRole | Secure Viewer |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "secureFolder" synced
|
2024-07-22 15:57:45 +02:00
|
|
|
When user "Brian" searches for "secureFolder" using the WebDAV API
|
|
|
|
|
Then the HTTP status code should be "207"
|
|
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
|
|
|
|
And as user "Brian" the REPORT response should contain a resource "secureFolder" with these key and value pairs:
|
2024-07-22 15:57:45 +02:00
|
|
|
| key | value |
|
|
|
|
|
| oc:shareroot | /secureFolder |
|
|
|
|
|
| oc:name | secureFolder |
|
|
|
|
|
| d:getcontenttype | httpd/unix-directory |
|
|
|
|
|
| oc:permissions | SMX |
|
|
|
|
|
| oc:size | 14 |
|
2024-10-01 12:58:30 +05:45
|
|
|
| oc:remote-item-id | %file_id_pattern% |
|
2026-07-02 17:17:32 +05:45
|
|
|
| oc:spaceid | %space_id_pattern% |
|
2024-07-22 15:57:45 +02:00
|
|
|
When user "Brian" searches for "secure.txt" using the WebDAV API
|
|
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
2024-07-22 15:57:45 +02:00
|
|
|
Then the HTTP status code should be "207"
|
2024-10-01 18:07:47 +05:45
|
|
|
And as user "Brian" the REPORT response should contain a resource "secure.txt" with these key and value pairs:
|
2026-07-02 17:17:32 +05:45
|
|
|
| key | value |
|
|
|
|
|
| oc:shareroot | /secureFolder |
|
|
|
|
|
| oc:name | secure.txt |
|
|
|
|
|
| d:getcontenttype | text/plain |
|
|
|
|
|
| oc:permissions | SX |
|
|
|
|
|
| d:getcontentlength | 14 |
|
|
|
|
|
| oc:spaceid | %space_id_pattern% |
|
2024-07-22 15:57:45 +02:00
|
|
|
Examples:
|
|
|
|
|
| dav-path-version |
|
|
|
|
|
| old |
|
|
|
|
|
| new |
|
|
|
|
|
| spaces |
|
|
|
|
|
|
2025-09-17 10:35:26 +02:00
|
|
|
@issue-9607 @env-config
|
2024-07-22 15:57:45 +02:00
|
|
|
Scenario Outline: check the REPORT response of a file shared with secure viewer role
|
|
|
|
|
Given using <dav-path-version> DAV path
|
2024-10-18 16:50:47 +05:45
|
|
|
And the administrator has enabled the permissions role "Secure Viewer"
|
2024-07-22 15:57:45 +02:00
|
|
|
And user "Alice" has uploaded file with content "secure content" to "/secure.txt"
|
|
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | secure.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
2024-10-18 16:50:47 +05:45
|
|
|
| permissionsRole | Secure Viewer |
|
2024-07-25 18:09:28 +05:45
|
|
|
And user "Brian" has a share "secure.txt" synced
|
2024-07-22 15:57:45 +02:00
|
|
|
When user "Brian" searches for "secure.txt" using the WebDAV API
|
|
|
|
|
Then the HTTP status code should be "207"
|
|
|
|
|
And the following headers should match these regular expressions
|
2024-10-01 18:07:47 +05:45
|
|
|
| X-Request-Id | %request_id_pattern% |
|
|
|
|
|
And as user "Brian" the REPORT response should contain a resource "secure.txt" with these key and value pairs:
|
2026-07-02 17:17:32 +05:45
|
|
|
| key | value |
|
|
|
|
|
| oc:shareroot | /secure.txt |
|
|
|
|
|
| oc:name | secure.txt |
|
|
|
|
|
| d:getcontenttype | text/plain |
|
|
|
|
|
| oc:permissions | SMX |
|
|
|
|
|
| d:getcontentlength | 14 |
|
|
|
|
|
| oc:spaceid | %space_id_pattern% |
|
2024-07-22 15:57:45 +02:00
|
|
|
Examples:
|
|
|
|
|
| dav-path-version |
|
|
|
|
|
| old |
|
|
|
|
|
| new |
|
|
|
|
|
| spaces |
|