Skip to content

Commit

Permalink
Merge pull request #38047 from owncloud/fileVersionsSharingTestsToShare
Browse files Browse the repository at this point in the history
[tests-only] test file versions when shares are received in a sub-folder
  • Loading branch information
phil-davis authored Oct 29, 2020
2 parents b9a93ab + 9e2069f commit 47365d2
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/acceptance/features/apiVersions/fileVersions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Feature: dav-versions
Then the version folder of fileId "<<FILEID>>" for user "Brian" should contain "1" element

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
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"
Expand All @@ -150,7 +150,7 @@ Feature: dav-versions
And the version folder of file "/sharefile.txt" for user "Alice" should contain "1" element

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
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"
Expand All @@ -162,7 +162,7 @@ Feature: dav-versions
And the content of file "/sharefile.txt" for user "Brian" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
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"
Expand All @@ -175,7 +175,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee 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"
Expand All @@ -188,7 +188,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
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"
Expand All @@ -201,7 +201,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee 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"
Expand All @@ -214,7 +214,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
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"
Expand All @@ -227,7 +227,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "old content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee can restore a file inside a shared folder created by sharer and modified by sharer
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/sharingfolder"
Expand All @@ -240,7 +240,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Brian" should be "old content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee can restore a file inside a shared folder created by sharer and modified by sharer, when the folder has been moved by the sharee
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/sharingfolder"
Expand All @@ -255,7 +255,7 @@ Feature: dav-versions
And the content of file "/received/sharingfolder/sharefile.txt" for user "Brian" should be "old content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee can restore a shared file created and modified by sharer, when the file has been moved by the sharee (file is at the top level of the sharer)
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "old content" to "/sharefile.txt"
Expand All @@ -269,7 +269,7 @@ Feature: dav-versions
And the content of file "/received/sharefile.txt" for user "Brian" should be "old content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243
@notToImplementOnOCIS @issue-ocis-reva-243
Scenario: sharee can restore a shared file created and modified by sharer, when the file has been moved by the sharee (file is inside a folder of the sharer)
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/sharingfolder"
Expand Down Expand Up @@ -303,7 +303,7 @@ Feature: dav-versions
And the content of file "/sharingfolder/sharefile.txt" for user "Carol" should be "First content"

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243 @issue-ocis-reva-386
@notToImplementOnOCIS @issue-ocis-reva-243 @issue-ocis-reva-386
Scenario Outline: Moving a file (with versions) into a shared folder as the sharee and as the sharer
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
Expand Down Expand Up @@ -331,7 +331,7 @@ Feature: dav-versions
| new | Brian |

@files_sharing-app-required
@toImplementOnOCIS @issue-ocis-reva-243 @issue-ocis-reva-386
@notToImplementOnOCIS @issue-ocis-reva-243 @issue-ocis-reva-386
Scenario Outline: Moving a file (with versions) out of a shared folder as the sharee and as the sharer
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
Expand Down
Loading

0 comments on commit 47365d2

Please sign in to comment.