mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
adding test for getting versions of a file after moving it (#8013)
This commit is contained in:
@@ -45,11 +45,6 @@ _ocdav: double-check the webdav property parsing when custom namespaces are used
|
|||||||
- [coreApiVersions/fileVersionAuthor.feature:297](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L297)
|
- [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:316](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersionAuthor.feature#L316)
|
||||||
|
|
||||||
#### [moving a file into a shared folder as the sharee and as the sharer](https://github.com/owncloud/ocis/issues/1287)
|
|
||||||
|
|
||||||
- [coreApiVersions/fileVersions.feature:382](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersions.feature#L382) Scenario: moving a file (with versions) into a shared folder as the sharee and as the sharer
|
|
||||||
- [coreApiVersions/fileVersions.feature:383](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersions.feature#L383) Scenario: moving a file (with versions) into a shared folder as the sharee and as the sharer
|
|
||||||
|
|
||||||
### Sync
|
### Sync
|
||||||
|
|
||||||
Synchronization features like etag propagation, setting mtime and locking files
|
Synchronization features like etag propagation, setting mtime and locking files
|
||||||
|
|||||||
@@ -58,3 +58,35 @@ Feature: checking file versions using file id
|
|||||||
And using new DAV path
|
And using new DAV path
|
||||||
When user "Brian" tries to get the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v"
|
When user "Brian" tries to get the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v"
|
||||||
Then the HTTP status code should be "403"
|
Then the HTTP status code should be "403"
|
||||||
|
|
||||||
|
|
||||||
|
Scenario Outline: check the versions of a file after moving to a shared folder inside a project space as editor/viewer
|
||||||
|
Given user "Alice" has created a folder "testFolder" in space "Project1"
|
||||||
|
And user "Alice" has created a share inside of space "Project1" with settings:
|
||||||
|
| path | testFolder |
|
||||||
|
| shareWith | Brian |
|
||||||
|
| role | <role> |
|
||||||
|
And user "Alice" has moved file "text.txt" to "/testFolder/movedText.txt" in space "Project1"
|
||||||
|
And using new DAV path
|
||||||
|
When user "Alice" gets the number of versions of file "/testFolder/movedText.txt" using file-id path "/meta/<<FILEID>>/v"
|
||||||
|
Then the HTTP status code should be "207"
|
||||||
|
And the number of versions should be "1"
|
||||||
|
When user "Brian" tries to get the number of versions of file "/Shares/testFolder/movedText.txt" using file-id path "/meta/<<FILEID>>/v"
|
||||||
|
Then the HTTP status code should be "403"
|
||||||
|
Examples:
|
||||||
|
| role |
|
||||||
|
| editor |
|
||||||
|
| viewer |
|
||||||
|
|
||||||
|
|
||||||
|
Scenario: check the versions of a file after moving it to a shared folder of a project space shared with all permissions
|
||||||
|
Given user "Alice" has created a folder "testFolder" in space "Project1"
|
||||||
|
And user "Alice" has created a share inside of space "Project1" with settings:
|
||||||
|
| path | testFolder |
|
||||||
|
| shareWith | Brian |
|
||||||
|
| role | all |
|
||||||
|
And user "Alice" has moved file "text.txt" to "/testFolder/movedText.txt" in space "Project1"
|
||||||
|
And using new DAV path
|
||||||
|
When user "Brian" gets the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v"
|
||||||
|
Then the HTTP status code should be "207"
|
||||||
|
And the number of versions should be "1"
|
||||||
|
|||||||
@@ -359,8 +359,8 @@ Feature: dav-versions
|
|||||||
And the content of file "/Shares/sharingfolder/sharefile.txt" for user "Carol" should be "First content"
|
And the content of file "/Shares/sharingfolder/sharefile.txt" for user "Carol" should be "First content"
|
||||||
|
|
||||||
@skipOnReva
|
@skipOnReva
|
||||||
Scenario Outline: moving a file (with versions) into a shared folder as the sharee and as the sharer
|
Scenario: moving a file (with versions) into a shared folder as the sharee and as the sharer
|
||||||
Given using <dav-path-version> DAV path
|
Given using new DAV path
|
||||||
And user "Brian" has been created with default attributes and without skeleton files
|
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 folder "/testshare"
|
||||||
And user "Brian" has created a share with settings
|
And user "Brian" has created a share with settings
|
||||||
@@ -369,6 +369,7 @@ Feature: dav-versions
|
|||||||
| permissions | change |
|
| permissions | change |
|
||||||
| shareWith | Alice |
|
| shareWith | Alice |
|
||||||
And user "Brian" has uploaded file with content "test data 1" to "/testfile.txt"
|
And user "Brian" has uploaded file with content "test data 1" to "/testfile.txt"
|
||||||
|
And we save it into "FILEID"
|
||||||
And user "Brian" has uploaded file with content "test data 2" 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"
|
And user "Brian" has uploaded file with content "test data 3" to "/testfile.txt"
|
||||||
When user "Brian" moves file "/testfile.txt" to "/testshare/testfile.txt" using the WebDAV API
|
When user "Brian" moves file "/testfile.txt" to "/testshare/testfile.txt" using the WebDAV API
|
||||||
@@ -376,11 +377,8 @@ Feature: dav-versions
|
|||||||
And the content of file "/Shares/testshare/testfile.txt" for user "Alice" should be "test data 3"
|
And the content of file "/Shares/testshare/testfile.txt" for user "Alice" should be "test data 3"
|
||||||
And the content of file "/testshare/testfile.txt" for user "Brian" should be "test data 3"
|
And the content of file "/testshare/testfile.txt" for user "Brian" should be "test data 3"
|
||||||
And as "Brian" file "/testfile.txt" should not exist
|
And as "Brian" file "/testfile.txt" should not exist
|
||||||
And the version folder of file "/Shares/testshare/testfile.txt" for user "Alice" should contain "2" elements
|
When user "Alice" tries to get the number of versions of file "/Shares/testshare/testfile.txt" using file-id path "/meta/<<FILEID>>/v"
|
||||||
Examples:
|
Then the HTTP status code should be "403"
|
||||||
| dav-path-version |
|
|
||||||
| old |
|
|
||||||
| new |
|
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: moving a file (with versions) out of a shared folder as the sharee and as the sharer
|
Scenario Outline: moving a file (with versions) out of a shared folder as the sharee and as the sharer
|
||||||
|
|||||||
Reference in New Issue
Block a user