Merge pull request #9203 from owncloud/use-sharingNG-in-given-steps-coreApiWebdavEtagPropagation

[full-ci] [tests-only] Use sharing-ng in given steps for sharing
This commit is contained in:
Prarup Gurung
2024-05-20 15:01:56 +05:45
committed by GitHub
6 changed files with 150 additions and 44 deletions
+2
View File
@@ -301,6 +301,7 @@ default:
- TrashbinContext: - TrashbinContext:
- PublicWebDavContext: - PublicWebDavContext:
- FilesVersionsContext: - FilesVersionsContext:
- SharingNgContext:
- WebDavPropertiesContext: - WebDavPropertiesContext:
coreApiWebdavEtagPropagation2: coreApiWebdavEtagPropagation2:
@@ -312,6 +313,7 @@ default:
- TrashbinContext: - TrashbinContext:
- PublicWebDavContext: - PublicWebDavContext:
- FilesVersionsContext: - FilesVersionsContext:
- SharingNgContext:
- WebDavPropertiesContext: - WebDavPropertiesContext:
- OcisConfigContext: - OcisConfigContext:
@@ -89,7 +89,12 @@ Feature: propagation of etags when deleting a file or folder
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/sub" And user "Alice" has stored etag of element "/upload/sub"
@@ -119,7 +124,12 @@ Feature: propagation of etags when deleting a file or folder
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/sub" And user "Alice" has stored etag of element "/upload/sub"
@@ -149,7 +159,12 @@ Feature: propagation of etags when deleting a file or folder
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has created folder "/upload/sub/toDelete" And user "Alice" has created folder "/upload/sub/toDelete"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/sub" And user "Alice" has stored etag of element "/upload/sub"
@@ -179,7 +194,12 @@ Feature: propagation of etags when deleting a file or folder
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has created folder "/upload/sub/toDelete" And user "Alice" has created folder "/upload/sub/toDelete"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/sub" And user "Alice" has stored etag of element "/upload/sub"
@@ -207,10 +227,12 @@ Feature: propagation of etags when deleting a file or folder
Scenario Outline: deleting a file in a publicly shared folder changes its etag for the sharer Scenario Outline: deleting a file in a publicly shared folder changes its etag for the sharer
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | change | | resource | upload |
| password | %public% | | space | Personal |
| permissionsRole | edit |
| password | %public% |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
When the public deletes file "file.txt" from the last public link share using the password "%public%" and new public WebDAV API When the public deletes file "file.txt" from the last public link share using the password "%public%" and new public WebDAV API
@@ -233,10 +255,12 @@ Feature: propagation of etags when deleting a file or folder
Scenario Outline: deleting a folder in a publicly shared folder changes its etag for the sharer Scenario Outline: deleting a folder in a publicly shared folder changes its etag for the sharer
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | change | | resource | upload |
| password | %public% | | space | Personal |
| permissionsRole | edit |
| password | %public% |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
When the public deletes folder "sub" from the last public link share using the password "%public%" and new public WebDAV API When the public deletes folder "sub" from the last public link share using the password "%public%" and new public WebDAV API
@@ -162,7 +162,12 @@ Feature: propagation of etags when moving files or folders
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -188,7 +193,12 @@ Feature: propagation of etags when moving files or folders
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -215,8 +225,18 @@ Feature: propagation of etags when moving files or folders
And user "Alice" has created folder "/src" And user "Alice" has created folder "/src"
And user "Alice" has created folder "/dst" And user "Alice" has created folder "/dst"
And user "Alice" has uploaded file with content "uploaded content" to "/src/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/src/file.txt"
And user "Alice" has shared folder "/src" with user "Brian" And user "Alice" has sent the following resource share invitation:
And user "Alice" has shared folder "/dst" with user "Brian" | resource | src |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has sent the following resource share invitation:
| resource | dst |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/src" And user "Alice" has stored etag of element "/src"
And user "Alice" has stored etag of element "/dst" And user "Alice" has stored etag of element "/dst"
@@ -247,8 +267,18 @@ Feature: propagation of etags when moving files or folders
And user "Alice" has created folder "/src" And user "Alice" has created folder "/src"
And user "Alice" has created folder "/dst" And user "Alice" has created folder "/dst"
And user "Alice" has created folder "/src/toMove" And user "Alice" has created folder "/src/toMove"
And user "Alice" has shared folder "/src" with user "Brian" And user "Alice" has sent the following resource share invitation:
And user "Alice" has shared folder "/dst" with user "Brian" | resource | src |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has sent the following resource share invitation:
| resource | dst |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/src" And user "Alice" has stored etag of element "/src"
And user "Alice" has stored etag of element "/dst" And user "Alice" has stored etag of element "/dst"
@@ -277,10 +307,12 @@ Feature: propagation of etags when moving files or folders
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | change | | resource | upload |
| password | %public% | | space | Personal |
| permissionsRole | edit |
| password | %public% |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
When the public renames file "file.txt" to "renamed.txt" from the last public link share using the password "%public%" and the new public WebDAV API When the public renames file "file.txt" to "renamed.txt" from the last public link share using the password "%public%" and the new public WebDAV API
@@ -304,10 +336,12 @@ Feature: propagation of etags when moving files or folders
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub"
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | change | | resource | upload |
| password | %public% | | space | Personal |
| permissionsRole | edit |
| password | %public% |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
When the public renames folder "sub" to "renamed" from the last public link share using the password "%public%" and the new public WebDAV API When the public renames folder "sub" to "renamed" from the last public link share using the password "%public%" and the new public WebDAV API
@@ -126,9 +126,11 @@ Feature: propagation of etags when copying files or folders
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | change | | resource | upload |
| space | Personal |
| permissionsRole | edit |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/file.txt" And user "Alice" has stored etag of element "/upload/file.txt"
@@ -160,7 +162,12 @@ Feature: propagation of etags when copying files or folders
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/file.txt" And user "Alice" has stored etag of element "/upload/file.txt"
@@ -196,7 +203,12 @@ Feature: propagation of etags when copying files or folders
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload"
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Alice" has stored etag of element "/upload/file.txt" And user "Alice" has stored etag of element "/upload/file.txt"
@@ -58,7 +58,12 @@ Feature: propagation of etags when creating folders
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/folder" And user "Alice" has created folder "/folder"
And user "Alice" has shared folder "/folder" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/folder" And user "Alice" has stored etag of element "/folder"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -83,7 +88,12 @@ Feature: propagation of etags when creating folders
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/folder" And user "Alice" has created folder "/folder"
And user "Alice" has shared folder "/folder" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/folder" And user "Alice" has stored etag of element "/folder"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -108,9 +118,11 @@ Feature: propagation of etags when creating folders
Given the config "OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" has been set to "false" Given the config "OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" has been set to "false"
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has created folder "/folder" And user "Alice" has created folder "/folder"
And user "Alice" has created a public link share with settings And using SharingNG
| path | folder | And user "Alice" has created the following resource link share:
| permissions | create | | resource | folder |
| space | Personal |
| permissionsRole | createOnly |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/folder" And user "Alice" has stored etag of element "/folder"
When the public creates folder "created-by-public" using the new public WebDAV API When the public creates folder "created-by-public" using the new public WebDAV API
@@ -56,7 +56,12 @@ Feature: propagation of etags when uploading data
Scenario Outline: sharee uploading a file inside a received shared folder should update etags for all collaborators Scenario Outline: sharee uploading a file inside a received shared folder should update etags for all collaborators
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -80,7 +85,12 @@ Feature: propagation of etags when uploading data
Scenario Outline: sharer uploading a file inside a shared folder should update etags for all collaborators Scenario Outline: sharer uploading a file inside a shared folder should update etags for all collaborators
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -105,7 +115,12 @@ Feature: propagation of etags when uploading data
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -130,7 +145,12 @@ Feature: propagation of etags when uploading data
Given user "Brian" has been created with default attributes and without skeleton files Given user "Brian" has been created with default attributes and without skeleton files
And using <dav-path-version> DAV path And using <dav-path-version> DAV path
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian" And user "Alice" has sent the following resource share invitation:
| resource | upload |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
And user "Brian" has stored etag of element "/" And user "Brian" has stored etag of element "/"
@@ -153,10 +173,12 @@ Feature: propagation of etags when uploading data
@issue-4251 @issue-4251
Scenario Outline: uploading a file into a publicly shared folder changes its etag for the sharer Scenario Outline: uploading a file into a publicly shared folder changes its etag for the sharer
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has created a public link share with settings And using SharingNG
| path | upload | And user "Alice" has created the following resource link share:
| permissions | create | | resource | upload |
| password | %public% | | space | Personal |
| permissionsRole | createOnly |
| password | %public% |
And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/"
And user "Alice" has stored etag of element "/upload" And user "Alice" has stored etag of element "/upload"
When the public uploads file "file.txt" with password "%public%" and content "new content" using the new public WebDAV API When the public uploads file "file.txt" with password "%public%" and content "new content" using the new public WebDAV API