From 1803c19b247bd56bd6523b0f0ebff6d907f7f60e Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Tue, 18 Jul 2023 17:15:08 +0200 Subject: [PATCH] add test for uploading zero file with mtime (#6552) --- .../coreApiWebdavUpload1/uploadFile.feature | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/tests/acceptance/features/coreApiWebdavUpload1/uploadFile.feature b/tests/acceptance/features/coreApiWebdavUpload1/uploadFile.feature index 1db774dcda..8bc50d5597 100644 --- a/tests/acceptance/features/coreApiWebdavUpload1/uploadFile.feature +++ b/tests/acceptance/features/coreApiWebdavUpload1/uploadFile.feature @@ -234,6 +234,23 @@ Feature: upload file | dav-path-version | | spaces | + @issue-1248 + Scenario Outline: upload an empty file with mtime + Given using 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 @@ -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 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