diff --git a/tests/acceptance/config/behat-core.yml b/tests/acceptance/config/behat-core.yml index 1d44780f1a..a71a7dd3f7 100644 --- a/tests/acceptance/config/behat-core.yml +++ b/tests/acceptance/config/behat-core.yml @@ -301,6 +301,7 @@ default: - TrashbinContext: - PublicWebDavContext: - FilesVersionsContext: + - SharingNgContext: - WebDavPropertiesContext: coreApiWebdavEtagPropagation2: @@ -312,6 +313,7 @@ default: - TrashbinContext: - PublicWebDavContext: - FilesVersionsContext: + - SharingNgContext: - WebDavPropertiesContext: - OcisConfigContext: diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature index e76f9f9e9a..2d54e1b7d1 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature @@ -89,7 +89,12 @@ Feature: propagation of etags when deleting a file or folder And using DAV path 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 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 "/upload" 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 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 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 "/upload" 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 And user "Alice" has created folder "/upload/sub" 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 "/upload" 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 And user "Alice" has created folder "/upload/sub" 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 "/upload" 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 Given using DAV path 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 - | path | upload | - | permissions | change | - | password | %public% | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | edit | + | password | %public% | And user "Alice" has stored etag of element "/" 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 @@ -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 Given using DAV path And user "Alice" has created folder "/upload/sub" - And user "Alice" has created a public link share with settings - | path | upload | - | permissions | change | - | password | %public% | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | edit | + | password | %public% | And user "Alice" has stored etag of element "/" 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 diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature index e18095df33..56b68677ed 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature @@ -162,7 +162,12 @@ Feature: propagation of etags when moving files or folders And using DAV path 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 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 "/upload" 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 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 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 "/upload" 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 "/dst" 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 shared folder "/dst" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | 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 "/src" 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 "/dst" And user "Alice" has created folder "/src/toMove" - And user "Alice" has shared folder "/src" with user "Brian" - And user "Alice" has shared folder "/dst" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | 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 "/src" 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 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 created a public link share with settings - | path | upload | - | permissions | change | - | password | %public% | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | edit | + | password | %public% | And user "Alice" has stored etag of element "/" 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 @@ -304,10 +336,12 @@ Feature: propagation of etags when moving files or folders Given using DAV path And user "Alice" has created folder "/upload" And user "Alice" has created folder "/upload/sub" - And user "Alice" has created a public link share with settings - | path | upload | - | permissions | change | - | password | %public% | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | edit | + | password | %public% | And user "Alice" has stored etag of element "/" 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 diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature index d222784c71..a7c95c43ff 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature @@ -126,9 +126,11 @@ Feature: propagation of etags when copying files or folders And using DAV path 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 created a public link share with settings - | path | upload | - | permissions | change | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | edit | 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/file.txt" @@ -160,7 +162,12 @@ Feature: propagation of etags when copying files or folders And using DAV path 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 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 "/upload" 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 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 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 "/upload" And user "Alice" has stored etag of element "/upload/file.txt" diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature index 523d3eb03d..5880d6cfdf 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature @@ -58,7 +58,12 @@ Feature: propagation of etags when creating folders Given user "Brian" has been created with default attributes and without skeleton files And using DAV path 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 "/folder" 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 And using DAV path 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 "/folder" 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" And using DAV path And user "Alice" has created folder "/folder" - And user "Alice" has created a public link share with settings - | path | folder | - | permissions | create | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | folder | + | space | Personal | + | permissionsRole | createOnly | And user "Alice" has stored etag of element "/" And user "Alice" has stored etag of element "/folder" When the public creates folder "created-by-public" using the new public WebDAV API diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature index f154eb96f2..020a056780 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature @@ -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 Given user "Brian" has been created with default attributes and without skeleton files And using 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 "/upload" 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 Given user "Brian" has been created with default attributes and without skeleton files And using 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 "/upload" 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 And using DAV path 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 "/upload" 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 And using DAV path 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 "/upload" And user "Brian" has stored etag of element "/" @@ -153,10 +173,12 @@ Feature: propagation of etags when uploading data @issue-4251 Scenario Outline: uploading a file into a publicly shared folder changes its etag for the sharer Given using DAV path - And user "Alice" has created a public link share with settings - | path | upload | - | permissions | create | - | password | %public% | + And using SharingNG + And user "Alice" has created the following resource link share: + | resource | upload | + | space | Personal | + | permissionsRole | createOnly | + | password | %public% | And user "Alice" has stored etag of element "/" 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