-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test downloading old versions of a file
- Loading branch information
1 parent
fe31caf
commit b8e8d74
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/acceptance/features/apiVersions/fileVersionsSharingToSharesIssue36228.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@api @files_versions-app-required @issue-36228 @notToImplementOnOCIS | ||
|
||
Feature: dav-versions | ||
|
||
Background: | ||
Given the administrator has set the default folder for received shares to "Shares" | ||
And auto-accept shares has been disabled | ||
And user "Alice" has been created with default attributes and without skeleton files | ||
|
||
Scenario: download an old version of a of a restored file | ||
Given user "Brian" has been created with default attributes and without skeleton files | ||
And user "Alice" has uploaded file with content "uploaded content" 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 "Brian" has accepted share "/textfile0.txt" offered by user "Alice" | ||
When user "Brian" downloads the version of file "/Shares/textfile0.txt" with the index "1" | ||
Then the HTTP status code should be "200" | ||
And the following headers should be set | ||
| header | value | | ||
| Content-Disposition | attachment; filename*=UTF-8''; filename="" | | ||
And the downloaded content should be "version 1" | ||
When user "Brian" downloads the version of file "/Shares/textfile0.txt" with the index "2" | ||
Then the HTTP status code should be "200" | ||
And the following headers should be set | ||
| header | value | | ||
| Content-Disposition | attachment; filename*=UTF-8''; filename="" | | ||
And the downloaded content should be "uploaded content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters