Added test to search when share is no accepted yet. (#6043)
This commit is contained in:
@@ -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"
|
||||||
And user "Alice" has created folder "/folderMain/SubFolder1/subFOLDER2"
|
And user "Alice" has created folder "/folderMain/SubFolder1/subFOLDER2"
|
||||||
And user "Alice" has shared entry "/folderMain" with user "Brian" with permissions "17"
|
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
|
Scenario Outline: Check the REPORT response of the found folder
|
||||||
Given using <dav_version> DAV path
|
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
|
When user "Brian" searches for "SubFolder1" using the WebDAV API
|
||||||
Then the HTTP status code should be "207"
|
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:
|
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
|
Scenario Outline: Check the REPORT response of the found file
|
||||||
Given using <dav_version> DAV path
|
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"
|
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
|
When user "Brian" searches for "frodo.txt" using the WebDAV API
|
||||||
Then the HTTP status code should be "207"
|
Then the HTTP status code should be "207"
|
||||||
@@ -50,3 +51,14 @@ Feature: REPORT request to Shares space
|
|||||||
| dav_version |
|
| dav_version |
|
||||||
| old |
|
| old |
|
||||||
| new |
|
| 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 |
|
||||||
|
|||||||
+10
@@ -54,3 +54,13 @@ Feature: Report test
|
|||||||
| d:getcontenttype | text/plain |
|
| d:getcontenttype | text/plain |
|
||||||
| oc:permissions | SD |
|
| oc:permissions | SD |
|
||||||
| d:getcontentlength | 12 |
|
| 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
|
||||||
Reference in New Issue
Block a user