mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 05:09:46 -06:00
Merge pull request #9060 from owncloud/use-sharingNG-in-given-steps-apiSearch2-suite
[full-ci] [tests-only] Use sharing ng in given steps api search2 suite
This commit is contained in:
@@ -269,6 +269,7 @@ default:
|
||||
- SpacesTUSContext:
|
||||
- TagContext:
|
||||
- TUSContext:
|
||||
- SharingNgContext:
|
||||
|
||||
apiSearchContent:
|
||||
paths:
|
||||
|
||||
@@ -109,7 +109,12 @@ Feature: media type search
|
||||
And user "Alice" has uploaded file "filesForUpload/data.7z" to "/uploadFolder/data.7z"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.rar" to "/uploadFolder/data.rar"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.bz2" to "/uploadFolder/data.tar.bz2"
|
||||
And user "Alice" has shared folder "uploadFolder" with user "Brian"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Brian" searches for "mediatype:<pattern>" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
@@ -140,9 +145,11 @@ Feature: media type search
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.7z" to "/data.7z" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.rar" to "/data.rar" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.tar.bz2" to "/data.tar.bz2" in space "project101"
|
||||
And user "Alice" has shared a space "project101" with settings:
|
||||
| shareWith | Brian |
|
||||
| role | viewer |
|
||||
And user "Alice" has sent the following share invitation:
|
||||
| space | project101 |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Space Viewer |
|
||||
When user "Brian" searches for "mediatype:<pattern>" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
|
||||
@@ -125,7 +125,12 @@ Feature: tag search
|
||||
And user "Alice" has uploaded file with content "hello nepal" to "uploadFolder/file3.txt"
|
||||
And user "Alice" has created the following tags for file "uploadFolder/file1.txt" of the space "Personal":
|
||||
| tag1 |
|
||||
And user "Alice" has shared folder "/uploadFolder" with user "Brian"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has created the following tags for file "uploadFolder/file2.txt" of the space "Shares":
|
||||
| tag1 |
|
||||
When user "Brian" searches for "Tags:tag1" using the WebDAV API
|
||||
@@ -149,9 +154,11 @@ Feature: tag search
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "tag-space" with the default quota using the Graph API
|
||||
And user "Alice" has shared a space "tag-space" with settings:
|
||||
| shareWith | Brian |
|
||||
| role | viewer |
|
||||
And user "Alice" has sent the following share invitation:
|
||||
| space | tag-space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Space Viewer |
|
||||
And user "Alice" has created a folder "spacesFolderWithFile/spacesSubFolder" in space "tag-space"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file" to "spacesFile.txt"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "untagged file" to "spacesFileWithoutTag.txt"
|
||||
|
||||
Reference in New Issue
Block a user