-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from owncloud/restoreVersion-tests
[Tests-Only] Add restoreVersion tests for issue 387
- Loading branch information
Showing
3 changed files
with
31 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
23 changes: 23 additions & 0 deletions
23
tests/acceptance/features/apiFilesPrimaryS3/restoreVersion.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,23 @@ | ||
@api @skipOnOcis-OC-Storage | ||
Feature: propagation of etags when restoring a version of a file | ||
|
||
Background: | ||
Given using OCS API version "2" | ||
And using new DAV path | ||
And user "Alice" has been created with default attributes and without skeleton files | ||
|
||
@issue-files_primary_s3-387 | ||
Scenario Outline: Restoring a file changes the etags of all parents | ||
Given user "Alice" has created folder "/upload" | ||
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 uploaded file with content "changed content" to "/upload/sub/file.txt" | ||
And user "Alice" has stored etag of element "/<element>" | ||
When user "Alice" restores version index "1" of file "/upload/sub/file.txt" using the WebDAV API | ||
Then the etag of element "/<element>" of user "Alice" should not have changed | ||
# Then the etag of element "/<element>" of user "Alice" should have changed | ||
Examples: | ||
| element | | ||
| | | ||
| upload | | ||
| upload/sub | |