diff --git a/tests/acceptance/config/behat-core.yml b/tests/acceptance/config/behat-core.yml index aeb4c16ce2..c886f8f776 100644 --- a/tests/acceptance/config/behat-core.yml +++ b/tests/acceptance/config/behat-core.yml @@ -196,6 +196,7 @@ default: - FilesVersionsContext: - WebDavPropertiesContext: - TrashbinContext: + - SharingNgContext: coreApiWebdavDelete: paths: diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index e6fd7f73cb..3867c16ccd 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -34,16 +34,16 @@ _ocdav: double-check the webdav property parsing when custom namespaces are used #### [file versions do not report the version author](https://github.com/owncloud/ocis/issues/2914) - [coreApiVersions/fileVersionAuthor.feature:15](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L15) -- [coreApiVersions/fileVersionAuthor.feature:43](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L43) -- [coreApiVersions/fileVersionAuthor.feature:68](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L68) -- [coreApiVersions/fileVersionAuthor.feature:92](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L92) -- [coreApiVersions/fileVersionAuthor.feature:123](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L123) -- [coreApiVersions/fileVersionAuthor.feature:148](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L148) -- [coreApiVersions/fileVersionAuthor.feature:177](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L177) -- [coreApiVersions/fileVersionAuthor.feature:208](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L208) -- [coreApiVersions/fileVersionAuthor.feature:254](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L254) -- [coreApiVersions/fileVersionAuthor.feature:297](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L297) -- [coreApiVersions/fileVersionAuthor.feature:316](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L316) +- [coreApiVersions/fileVersionAuthor.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L58) +- [coreApiVersions/fileVersionAuthor.feature:88](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L88) +- [coreApiVersions/fileVersionAuthor.feature:117](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L117) +- [coreApiVersions/fileVersionAuthor.feature:153](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L153) +- [coreApiVersions/fileVersionAuthor.feature:183](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L183) +- [coreApiVersions/fileVersionAuthor.feature:217](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L217) +- [coreApiVersions/fileVersionAuthor.feature:258](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L258) +- [coreApiVersions/fileVersionAuthor.feature:334](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L334) +- [coreApiVersions/fileVersionAuthor.feature:407](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L407) +- [coreApiVersions/fileVersionAuthor.feature:436](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L436) ### Sync diff --git a/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature b/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature index 1a903fd615..751102eebe 100644 --- a/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature +++ b/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature @@ -15,9 +15,24 @@ Feature: file versions remember the author of each version Scenario: enable file versioning and check the history of changes from multiple users Given user "David" has been created with default attributes and without skeleton files And user "Alice" has created folder "/test" - And user "Alice" has shared folder "/test" with user "Brian" with permissions "all" - And user "Alice" has shared folder "/test" with user "Carol" with permissions "all" - And user "Alice" has shared folder "/test" with user "David" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt" @@ -46,7 +61,12 @@ Feature: file versions remember the author of each version And user "Alice" has been added to group "grp1" And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" - And user "Alice" has shared folder "/test" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt" @@ -71,7 +91,12 @@ Feature: file versions remember the author of each version And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" And user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt" - And user "Alice" has shared file "/textfile0.txt" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0.txt" When user "Alice" gets the number of versions of file "textfile0.txt" @@ -95,7 +120,12 @@ Feature: file versions remember the author of each version And user "Alice" has been added to group "grp1" And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" - And user "Alice" has shared folder "/test" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt" @@ -126,7 +156,12 @@ Feature: file versions remember the author of each version And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" And user "Alice" has uploaded file with content "uploaded content alice" to "/exist.txt" - And user "Alice" has shared file "/exist.txt" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | exist.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/exist.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/exist.txt" And user "Alice" has moved file "/exist.txt" to "/textfile0.txt" @@ -151,7 +186,12 @@ Feature: file versions remember the author of each version And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" And user "Alice" has uploaded file with content "uploaded content alice" to "/exist.txt" - And user "Alice" has shared file "/exist.txt" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | exist.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/exist.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/exist.txt" And user "Brian" has moved file "/Shares/exist.txt" to "/Shares/textfile0.txt" @@ -180,13 +220,23 @@ Feature: file versions remember the author of each version And user "Alice" has been added to group "grp1" And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" - And user "Alice" has shared folder "/test" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt" And user "Alice" has deleted the last share And user "Alice" has uploaded file with content "uploaded content alice after unshared folder" to "/test/textfile0.txt" - And user "Alice" has shared folder "/test" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | When user "Alice" gets the number of versions of file "/test/textfile0.txt" Then the HTTP status code should be "207" And the number of versions should be "3" @@ -210,15 +260,45 @@ Feature: file versions remember the author of each version And user "Brian" has created folder "/test" And user "Brian" has uploaded file with content "duplicate brian" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "overwrite brian" to "/test/textfile0.txt" - And user "Brian" has shared folder "/test" with user "Carol" with permissions "all" - And user "Brian" has shared folder "/test" with user "David" with permissions "all" + And user "Brian" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | Editor | + And user "Brian" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | Editor | And user "Carol" has created folder "/test" And user "Carol" has uploaded file with content "duplicate carol" to "/test/textfile0.txt" - And user "Carol" has shared folder "/test" with user "Brian" with permissions "all" + And user "Carol" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has created folder "/test" - And user "Alice" has shared folder "/test" with user "Brian" with permissions "all" - And user "Alice" has shared folder "/test" with user "Carol" with permissions "all" - And user "Alice" has shared folder "/test" with user "David" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test (1)/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test (1)/textfile0.txt" @@ -255,14 +335,44 @@ Feature: file versions remember the author of each version Given user "David" has been created with default attributes and without skeleton files And user "Brian" has uploaded file with content "duplicate brian" to "/textfile0.txt" And user "Brian" has uploaded file with content "overwrite brian" to "/textfile0.txt" - And user "Brian" has shared file "/textfile0.txt" with user "Carol" - And user "Brian" has shared file "/textfile0.txt" with user "David" + And user "Brian" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | File Editor | + And user "Brian" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | File Editor | And user "Carol" has uploaded file with content "duplicate carol" to "/textfile0.txt" - And user "Carol" has shared file "/textfile0.txt" with user "Brian" + And user "Carol" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt" - And user "Alice" has shared file "/textfile0.txt" with user "Brian" - And user "Alice" has shared file "/textfile0.txt" with user "Carol" - And user "Alice" has shared file "/textfile0.txt" with user "David" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | File Editor | + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | David | + | shareType | user | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0 (1).txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0 (1).txt" And user "David" has uploaded file with content "uploaded content david" to "/Shares/textfile0 (1).txt" @@ -296,8 +406,18 @@ Feature: file versions remember the author of each version Scenario: enable file versioning and check the version author after restoring a version of a file inside a folder Given user "Alice" has created folder "/test" - And user "Alice" has shared folder "/test" with user "Brian" with permissions "all" - And user "Alice" has shared folder "/test" with user "Carol" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt" And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt" @@ -315,8 +435,18 @@ Feature: file versions remember the author of each version Scenario: enable file versioning and check the version author after restoring a version of a file Given user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt" - And user "Alice" has shared file "/textfile0.txt" with user "Brian" - And user "Alice" has shared file "/textfile0.txt" with user "Carol" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Carol | + | shareType | user | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0.txt" And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0.txt" When user "Brian" restores version index "1" of file "/Shares/textfile0.txt" using the WebDAV API diff --git a/tests/acceptance/features/coreApiVersions/fileVersions.feature b/tests/acceptance/features/coreApiVersions/fileVersions.feature index 2607caf0bf..385596ac73 100644 --- a/tests/acceptance/features/coreApiVersions/fileVersions.feature +++ b/tests/acceptance/features/coreApiVersions/fileVersions.feature @@ -274,7 +274,12 @@ Feature: dav-versions Scenario: sharer of a file can see the old version information when the sharee changes the content of the file Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "First content" to "sharefile.txt" - And user "Alice" has shared file "sharefile.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | sharefile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" uploads file with content "Second content" to "/Shares/sharefile.txt" using the WebDAV API Then the HTTP status code should be "204" And the version folder of file "/sharefile.txt" for user "Alice" should contain "1" element @@ -285,7 +290,12 @@ Feature: dav-versions Scenario: sharer of a file can restore the original content of a shared file after the file has been modified by the sharee Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "First content" to "sharefile.txt" - And user "Alice" has shared file "sharefile.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | sharefile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | And user "Brian" has uploaded file with content "Second content" to "/Shares/sharefile.txt" When user "Alice" restores version index "1" of file "/sharefile.txt" using the WebDAV API Then the HTTP status code should be "204" @@ -296,7 +306,12 @@ Feature: dav-versions Scenario: sharer can restore a file inside a shared folder modified by sharee Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/sharingfolder" - And user "Alice" has shared folder "/sharingfolder" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | sharingfolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "First content" to "/sharingfolder/sharefile.txt" And user "Brian" has uploaded file with content "Second content" to "/Shares/sharingfolder/sharefile.txt" When user "Alice" restores version index "1" of file "/sharingfolder/sharefile.txt" using the WebDAV API @@ -308,7 +323,12 @@ Feature: dav-versions Scenario: sharee cannot see a version of a file inside a shared folder when modified by sharee Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/sharingfolder" - And user "Alice" has shared folder "/sharingfolder" with user "Brian" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | sharingfolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "First content" to "/sharingfolder/sharefile.txt" When user "Brian" has uploaded file with content "Second content" to "/Shares/sharingfolder/sharefile.txt" And user "Brian" gets the number of versions of file "/Shares/sharingfolder/sharefile.txt" @@ -320,7 +340,12 @@ Feature: dav-versions Scenario: sharer can restore a file inside a shared folder created by sharee and modified by sharer Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/sharingfolder" - And user "Alice" has shared folder "/sharingfolder" with user "Brian" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | sharingfolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Brian" has uploaded file with content "First content" to "/Shares/sharingfolder/sharefile.txt" And user "Alice" has uploaded file with content "Second content" to "/sharingfolder/sharefile.txt" When user "Alice" restores version index "1" of file "/sharingfolder/sharefile.txt" using the WebDAV API @@ -332,7 +357,12 @@ Feature: dav-versions Scenario: sharer can restore a file inside a shared folder created by sharee and modified by sharee Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/sharingfolder" - And user "Alice" has shared folder "/sharingfolder" with user "Brian" with permissions "all" + And user "Alice" has sent the following resource share invitation: + | resource | sharingfolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Brian" has uploaded file with content "old content" to "/Shares/sharingfolder/sharefile.txt" And user "Brian" has uploaded file with content "new content" to "/Shares/sharingfolder/sharefile.txt" When user "Alice" restores version index "1" of file "/sharingfolder/sharefile.txt" using the WebDAV API @@ -348,7 +378,12 @@ Feature: dav-versions And user "Brian" has been added to group "grp1" And user "Carol" has been added to group "grp1" And user "Alice" has created folder "/sharingfolder" - And user "Alice" has shared folder "/sharingfolder" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | sharingfolder | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | And user "Alice" has uploaded file with content "First content" to "/sharingfolder/sharefile.txt" And user "Brian" has uploaded file with content "Second content" to "/Shares/sharingfolder/sharefile.txt" And user "Carol" has uploaded file with content "Third content" to "/Shares/sharingfolder/sharefile.txt" @@ -363,11 +398,12 @@ Feature: dav-versions Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Brian" has created folder "/testshare" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | | - | shareWith | Alice | + And user "Brian" has sent the following resource share invitation: + | resource | testshare | + | space | Personal | + | sharee | Alice | + | shareType | user | + | permissionsRole | | And user "Brian" has uploaded file with content "test data 1" to "/testfile.txt" And user "Brian" has uploaded file with content "test data 2" to "/testfile.txt" And user "Brian" has uploaded file with content "test data 3" to "/testfile.txt" @@ -379,20 +415,25 @@ Feature: dav-versions And the version folder of file "Shares/testshare/testfile.txt" for user "Alice" should contain "0" elements And the version folder of file "testshare/testfile.txt" for user "Brian" should contain "2" elements Examples: - | dav-path-version | permissions | - | old | read | - | old | change | - | old | all | - | new | read | - | new | change | - | new | all | + | dav-path-version | permissions-role | + | old | Viewer | + | old | Uploader | + | old | Editor | + | new | Viewer | + | new | Uploader | + | new | Editor | Scenario: sharee tries to get file versions of file not shared by the sharer Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "textfile0" to "textfile0.txt" And user "Alice" has uploaded file with content "textfile1" to "textfile1.txt" - And user "Alice" has shared file "textfile0.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" tries to get versions of file "textfile1.txt" from "Alice" Then the HTTP status code should be "404" And the value of the item "//s:exception" in the response about user "Alice" should be "Sabre\DAV\Exception\NotFound" @@ -404,7 +445,12 @@ Feature: dav-versions And user "Alice" has uploaded file with content "version 1" to "textfile0.txt" And user "Alice" has uploaded file with content "version 2" to "textfile0.txt" And user "Alice" has uploaded file with content "version 3" to "textfile0.txt" - And user "Alice" has shared file "textfile0.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" tries to get versions of file "textfile0.txt" from "Alice" Then the HTTP status code should be "403" @@ -414,7 +460,12 @@ Feature: dav-versions And user "Alice" has uploaded file with content "textfile0" to "textfile0.txt" And user "Alice" has uploaded file with content "version 1" to "textfile0.txt" And user "Alice" has uploaded file with content "version 2" to "textfile0.txt" - And user "Alice" has shared file "textfile0.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" tries to get versions of file "textfile0.txt" from "Alice" Then the HTTP status code should be "403" And the value of the item "//s:exception" in the response about user "Alice" should be "Sabre\DAV\Exception\Forbidden"