Added test to search when share is no accepted yet. (#6043)

This commit is contained in:
Sagar Gurung
2023-04-18 16:46:11 +05:45
committed by GitHub
parent e693da5b39
commit 5db4656d62
2 changed files with 23 additions and 1 deletions

View File

@@ -11,11 +11,11 @@ Feature: REPORT request to Shares space
And user "Alice" has created folder "/folderMain/SubFolder1"
And user "Alice" has created folder "/folderMain/SubFolder1/subFOLDER2"
And user "Alice" has shared entry "/folderMain" with user "Brian" with permissions "17"
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
Scenario Outline: Check the REPORT response of the found folder
Given using <dav_version> DAV path
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "SubFolder1" using the WebDAV API
Then the HTTP status code should be "207"
And the "REPORT" response to user "Brian" should contain a mountpoint "folderMain" with these key and value pairs:
@@ -34,6 +34,7 @@ Feature: REPORT request to Shares space
Scenario Outline: Check the REPORT response of the found file
Given using <dav_version> DAV path
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
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"
@@ -50,3 +51,14 @@ Feature: REPORT request to Shares space
| dav_version |
| old |
| new |
Scenario Outline: search for the shared folder when share is not accepted
Given using <dav_version> DAV path
When user "Brian" searches for "folderMain" using the WebDAV API
Then the HTTP status code should be "207"
And the search result should contain "0" entries
Examples:
| dav_version |
| old |
| new |

View File

@@ -54,3 +54,13 @@ Feature: Report test
| d:getcontenttype | text/plain |
| oc:permissions | SD |
| d:getcontentlength | 12 |
Scenario: search for the shared folder when the share is not accepted
Given user "Alice" has created a share inside of space "find data" with settings:
| path | folderMain |
| shareWith | Brian |
| role | viewer |
When user "Brian" searches for "folderMain" using the WebDAV API
Then the HTTP status code should be "207"
And the search result should contain "0" entries