mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-13 23:49:05 -06:00
add test for uploading zero file with mtime (#6552)
This commit is contained in:
@@ -234,6 +234,23 @@ Feature: upload file
|
||||
| dav-path-version |
|
||||
| spaces |
|
||||
|
||||
@issue-1248
|
||||
Scenario Outline: upload an empty file with mtime
|
||||
Given using <dav_version> DAV path
|
||||
When user "Alice" uploads file "filesForUpload/zerobyte.txt" to "file.txt" with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And as "Alice" file "file.txt" should exist
|
||||
And as "Alice" the mtime of the file "file.txt" should be "Thu, 08 Aug 2019 04:18:13 GMT"
|
||||
Examples:
|
||||
| dav_version |
|
||||
| old |
|
||||
| new |
|
||||
|
||||
@skipOnRevaMaster
|
||||
Examples:
|
||||
| dav_version |
|
||||
| spaces |
|
||||
|
||||
|
||||
Scenario Outline: upload a file with mtime in a folder
|
||||
Given using <dav-path-version> DAV path
|
||||
@@ -252,6 +269,24 @@ Feature: upload file
|
||||
| dav-path-version |
|
||||
| spaces |
|
||||
|
||||
@issue-1248
|
||||
Scenario Outline: upload an empty file with mtime in a folder
|
||||
Given using <dav_version> DAV path
|
||||
And user "Alice" has created folder "testFolder"
|
||||
When user "Alice" uploads file "filesForUpload/zerobyte.txt" to "/testFolder/file.txt" with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And as "Alice" file "/testFolder/file.txt" should exist
|
||||
And as "Alice" the mtime of the file "/testFolder/file.txt" should be "Thu, 08 Aug 2019 04:18:13 GMT"
|
||||
Examples:
|
||||
| dav_version |
|
||||
| old |
|
||||
| new |
|
||||
|
||||
@skipOnRevaMaster
|
||||
Examples:
|
||||
| dav_version |
|
||||
| spaces |
|
||||
|
||||
|
||||
Scenario Outline: moving a file does not change its mtime
|
||||
Given using <dav-path-version> DAV path
|
||||
|
||||
Reference in New Issue
Block a user