Initial QSfera import
This commit is contained in:
@@ -0,0 +1,217 @@
|
||||
Feature: media type search
|
||||
As a user
|
||||
I want to search files using media type
|
||||
So that I can find the files with specific media type
|
||||
|
||||
Background:
|
||||
Given these users have been created with default attributes:
|
||||
| username |
|
||||
| Alice |
|
||||
| Brian |
|
||||
And using spaces DAV path
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search for files using media type
|
||||
Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt"
|
||||
And user "Alice" has uploaded file "filesForUpload/simple.pdf" to "/simple.pdf"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/testavatar.jpg"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/testavatar.png"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.gz" to "/data.tar.gz"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar" to "/data.tar"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.7z" to "/data.7z"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.rar" to "/data.rar"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.bz2" to "/data.tar.bz2"
|
||||
When user "Alice" searches for "mediatype:<pattern>" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result> |
|
||||
Examples:
|
||||
| pattern | search-result |
|
||||
| *text* | lorem.txt |
|
||||
| *pdf* | simple.pdf |
|
||||
| *jpeg* | testavatar.jpg |
|
||||
| *png* | testavatar.png |
|
||||
| *gzip* | data.tar.gz |
|
||||
| *tar* | data.tar |
|
||||
| *7z* | data.7z |
|
||||
| *rar* | data.rar |
|
||||
| *bzip2* | data.tar.bz2 |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search for files inside sub folders using media type
|
||||
Given user "Alice" has created folder "/uploadFolder"
|
||||
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/uploadFolder/lorem.txt"
|
||||
And user "Alice" has uploaded file "filesForUpload/simple.pdf" to "/uploadFolder/simple.pdf"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/uploadFolder/testavatar.jpg"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/uploadFolder/testavatar.png"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.gz" to "/uploadFolder/data.tar.gz"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar" to "/uploadFolder/data.tar"
|
||||
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"
|
||||
When user "Alice" searches for "mediatype:<pattern>" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result> |
|
||||
Examples:
|
||||
| pattern | search-result |
|
||||
| *text* | lorem.txt |
|
||||
| *pdf* | simple.pdf |
|
||||
| *jpeg* | testavatar.jpg |
|
||||
| *png* | testavatar.png |
|
||||
| *gzip* | data.tar.gz |
|
||||
| *tar* | data.tar |
|
||||
| *7z* | data.7z |
|
||||
| *rar* | data.rar |
|
||||
| *bzip2* | data.tar.bz2 |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search for file inside project space using media type
|
||||
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "project101" with the default quota using the Graph API
|
||||
And user "Alice" has uploaded a file "filesForUpload/lorem.txt" to "/lorem.txt" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/simple.pdf" to "/simple.pdf" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/testavatar.jpg" to "/testavatar.jpg" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/testavatar.png" to "/testavatar.png" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.tar.gz" to "/data.tar.gz" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.tar" to "/data.tar" in space "project101"
|
||||
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"
|
||||
When user "Alice" searches for "mediatype:<pattern>" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result> |
|
||||
Examples:
|
||||
| pattern | search-result |
|
||||
| *text* | lorem.txt |
|
||||
| *pdf* | simple.pdf |
|
||||
| *jpeg* | testavatar.jpg |
|
||||
| *png* | testavatar.png |
|
||||
| *gzip* | data.tar.gz |
|
||||
| *tar* | data.tar |
|
||||
| *7z* | data.7z |
|
||||
| *rar* | data.rar |
|
||||
| *bzip2* | data.tar.bz2 |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: sharee searches for shared files using media type
|
||||
Given user "Alice" has created folder "/uploadFolder"
|
||||
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/uploadFolder/lorem.txt"
|
||||
And user "Alice" has uploaded file "filesForUpload/simple.pdf" to "/uploadFolder/simple.pdf"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/uploadFolder/testavatar.jpg"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/uploadFolder/testavatar.png"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.gz" to "/uploadFolder/data.tar.gz"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar" to "/uploadFolder/data.tar"
|
||||
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 sent the following resource share invitation:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "uploadFolder" synced
|
||||
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
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result> |
|
||||
Examples:
|
||||
| pattern | search-result |
|
||||
| *text* | lorem.txt |
|
||||
| *pdf* | simple.pdf |
|
||||
| *jpeg* | testavatar.jpg |
|
||||
| *png* | testavatar.png |
|
||||
| *gzip* | data.tar.gz |
|
||||
| *tar* | data.tar |
|
||||
| *7z* | data.7z |
|
||||
| *rar* | data.rar |
|
||||
| *bzip2* | data.tar.bz2 |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: space viewer searches for files using mediatype filter
|
||||
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "project101" with the default quota using the Graph API
|
||||
And user "Alice" has uploaded a file "filesForUpload/lorem.txt" to "/lorem.txt" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/simple.pdf" to "/simple.pdf" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/testavatar.jpg" to "/testavatar.jpg" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/testavatar.png" to "/testavatar.png" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.tar.gz" to "/data.tar.gz" in space "project101"
|
||||
And user "Alice" has uploaded a file "filesForUpload/data.tar" to "/data.tar" in space "project101"
|
||||
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 sent the following space 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
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result> |
|
||||
Examples:
|
||||
| pattern | search-result |
|
||||
| *text* | lorem.txt |
|
||||
| *pdf* | simple.pdf |
|
||||
| *jpeg* | testavatar.jpg |
|
||||
| *png* | testavatar.png |
|
||||
| *gzip* | data.tar.gz |
|
||||
| *tar* | data.tar |
|
||||
| *7z* | data.7z |
|
||||
| *rar* | data.rar |
|
||||
| *bzip2* | data.tar.bz2 |
|
||||
|
||||
@issue-10329
|
||||
Scenario: search files with different mediatype filter
|
||||
Given user "Alice" has created folder "testFolder"
|
||||
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "lorem.txt"
|
||||
And user "Alice" has uploaded file "filesForUpload/simple.odt" to "simple.odt"
|
||||
And user "Alice" has uploaded file "filesForUpload/simple.pdf" to "simple.pdf"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "testavatar.jpg"
|
||||
And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "testavatar.png"
|
||||
And user "Alice" has uploaded file "filesForUpload/example.gif" to "example.gif"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.gz" to "data.tar.gz"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar" to "data.tar"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.7z" to "data.7z"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.rar" to "data.rar"
|
||||
And user "Alice" has uploaded file "filesForUpload/data.tar.bz2" to "data.tar.bz2"
|
||||
When user "Alice" searches for "mediatype:folder" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "2" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| %spaceid% |
|
||||
| testFolder |
|
||||
When user "Alice" searches for "mediatype:document" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "2" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| lorem.txt |
|
||||
| simple.odt |
|
||||
When user "Alice" searches for "mediatype:pdf" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "1" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| simple.pdf |
|
||||
When user "Alice" searches for "mediatype:image" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "3" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| testavatar.jpg |
|
||||
| testavatar.png |
|
||||
| example.gif |
|
||||
When user "Alice" searches for "mediatype:archive" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "5" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| data.tar.gz |
|
||||
| data.tar |
|
||||
| data.7z |
|
||||
| data.rar |
|
||||
| data.tar.bz2 |
|
||||
@@ -0,0 +1,265 @@
|
||||
Feature: tag search
|
||||
As a user
|
||||
I want to do search resources by tag
|
||||
So that I can find the files with the tag I am looking for
|
||||
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search files by tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created the following folders
|
||||
| path |
|
||||
| folderWithFile |
|
||||
| folderWithFile/subFolder/ |
|
||||
And user "Alice" has uploaded the following files with content "some data"
|
||||
| path |
|
||||
| fileInRootLevel.txt |
|
||||
| folderWithFile/fileInsideFolder.txt |
|
||||
| folderWithFile/subFolder/fileInsideSubFolder.txt |
|
||||
And user "Alice" has tagged the following files of the space "Personal":
|
||||
| path | tagName |
|
||||
| fileInRootLevel.txt | tag1 |
|
||||
| folderWithFile/fileInsideFolder.txt | tag1 |
|
||||
| folderWithFile/subFolder/fileInsideSubFolder.txt | tag1 |
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these files:
|
||||
| fileInRootLevel.txt |
|
||||
| fileInsideFolder.txt |
|
||||
| fileInsideSubFolder.txt |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search project space files by tag
|
||||
Given using spaces DAV path
|
||||
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 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"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file in folder" to "spacesFolderWithFile/spacesFileInsideFolder.txt"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file in subfolder" to "spacesFolderWithFile/spacesSubFolder/spacesFileInsideSubFolder.txt"
|
||||
And user "Alice" has tagged the following files of the space "tag-space":
|
||||
| path | tagName |
|
||||
| spacesFile.txt | tag1 |
|
||||
| spacesFolderWithFile/spacesFileInsideFolder.txt | tag1 |
|
||||
| spacesFolderWithFile/spacesSubFolder/spacesFileInsideSubFolder.txt | tag1 |
|
||||
And using <dav-path-version> DAV path
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these files:
|
||||
| spacesFile.txt |
|
||||
| spacesFileInsideFolder.txt |
|
||||
| spacesFileInsideSubFolder.txt |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search folders using a tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "uploadFolder1"
|
||||
And user "Alice" has created folder "uploadFolder2"
|
||||
And user "Alice" has created folder "uploadFolder3"
|
||||
And user "Alice" has tagged the following folders of the space "Personal":
|
||||
| path | tagName |
|
||||
| uploadFolder1 | tag1 |
|
||||
| uploadFolder2 | tag1 |
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these entries:
|
||||
| uploadFolder1 |
|
||||
| uploadFolder2 |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search project space folders by tag
|
||||
Given using spaces DAV path
|
||||
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 created a folder "spacesFolder/spacesSubFolder" in space "tag-space"
|
||||
And user "Alice" has created a folder "unTagSpacesFolder/unTagSpacesSubFolder" in space "tag-space"
|
||||
And user "Alice" has tagged the following folders of the space "tag-space":
|
||||
| path | tagName |
|
||||
| spacesFolder | tag1 |
|
||||
| spacesFolder/spacesSubFolder | tag1 |
|
||||
And using <dav-path-version> DAV path
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these files:
|
||||
| spacesFolder |
|
||||
| spacesSubFolder |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: sharee searches shared files using a tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
And user "Alice" has created folder "uploadFolder"
|
||||
And user "Alice" has uploaded file with content "hello world" to "uploadFolder/file1.txt"
|
||||
And user "Alice" has uploaded file with content "Namaste nepal" to "uploadFolder/file2.txt"
|
||||
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 sent the following resource share invitation:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "uploadFolder" synced
|
||||
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
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Brian" should contain only these files:
|
||||
| file1.txt |
|
||||
| file2.txt |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: sharee searches shared project space files using a tag
|
||||
Given using spaces DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
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 sent the following space 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"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file in folder" to "spacesFolderWithFile/spacesFileInsideFolder.txt"
|
||||
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file in subfolder" to "spacesFolderWithFile/spacesSubFolder/spacesFileInsideSubFolder.txt"
|
||||
And user "Alice" has tagged the following files of the space "tag-space":
|
||||
| path | tagName |
|
||||
| spacesFile.txt | tag1 |
|
||||
| spacesFolderWithFile/spacesFileInsideFolder.txt | tag1 |
|
||||
| spacesFolderWithFile/spacesSubFolder/spacesFileInsideSubFolder.txt | tag1 |
|
||||
And using <dav-path-version> DAV path
|
||||
When user "Brian" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these files:
|
||||
| spacesFile.txt |
|
||||
| spacesFileInsideFolder.txt |
|
||||
| spacesFileInsideSubFolder.txt |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
|
||||
Scenario Outline: search files using a deleted tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "hello world" to "file1.txt"
|
||||
And user "Alice" has created the following tags for file "file1.txt" of the space "Personal":
|
||||
| tag1 |
|
||||
And user "Alice" has removed the following tags for file "file1.txt" of space "Personal":
|
||||
| tag1 |
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "0" entries
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search restored files using a tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "hello world" to "file1.txt"
|
||||
And user "Alice" has uploaded file with content "Namaste nepal" to "file2.txt"
|
||||
And user "Alice" has created the following tags for file "file1.txt" of the space "Personal":
|
||||
| tag1 |
|
||||
And user "Alice" has deleted file "/file1.txt"
|
||||
And user "Alice" has restored the file with original path "/file1.txt"
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these entries:
|
||||
| file1.txt |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search restored version of a file using a tag
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "version one file" to "file.txt"
|
||||
And user "Alice" has created the following tags for file "file.txt" of the space "Personal":
|
||||
| tag1 |
|
||||
And user "Alice" has uploaded file with content "version two file" to "file.txt"
|
||||
And user "Alice" has restored version index "1" of file "file.txt"
|
||||
When user "Alice" searches for "Tags:tag1" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result of user "Alice" should contain only these entries:
|
||||
| file.txt |
|
||||
And the content of file "file.txt" for user "Alice" should be "version one file"
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-10329
|
||||
Scenario Outline: search resources using different search patterns (KQL feature)
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has created the following folders
|
||||
| path |
|
||||
| exercises |
|
||||
| answers |
|
||||
| verification work |
|
||||
| withoutTagFolder |
|
||||
And user "Alice" has tagged the following folders of the space "Personal":
|
||||
| path | tagName |
|
||||
| exercises | klass10 |
|
||||
| exercises | mathe |
|
||||
| exercises | physik |
|
||||
| answers | klass10 |
|
||||
| answers | mathe |
|
||||
| answers | chemi |
|
||||
| verification work | klass10 |
|
||||
When user "Alice" searches for '<pattern>' using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the search result should contain "<result-count>" entries
|
||||
And the search result of user "Alice" should contain these entries:
|
||||
| <search-result-1> |
|
||||
| <search-result-2> |
|
||||
Examples:
|
||||
| pattern | result-count | search-result-1 | search-result-2 |
|
||||
| Tags:mathe | 2 | exercises | answers |
|
||||
| tag:mathe | 2 | exercises | answers |
|
||||
| tag:(mathe klass10) | 2 | exercises | answers |
|
||||
| tag:klass10 AND tag:chemi | 1 | answers | |
|
||||
| tag:chemi OR tag:physik | 2 | exercises | answers |
|
||||
| (tag:klass10) NOT tag:physik | 2 | answers | verification work |
|
||||
| (tag:(mathe klass10)) NOT tag:chemi | 1 | exercises | |
|
||||
| (tag:mathe OR tag:klass10) NOT tag:physik | 2 | answers | verification work |
|
||||
| tag:mathe NOT name:exercises | 1 | answers | |
|
||||
| tag:mathe AND NOT name:exercises | 1 | answers | |
|
||||
# The third finding is the personal space itself
|
||||
| NOT tag:mathe | 3 | verification work | withoutTagFolder |
|
||||
Reference in New Issue
Block a user