Merge pull request #432 from owncloud/add-new-uploadFile-scenario

[Tests-Only] Add new uploadFile bug demo scenario from core PR 37795
This commit is contained in:
Phil Davis
2020-08-11 17:17:09 +05:45
committed by GitHub
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
config = {
'apiTests': {
'coreBranch': 'master',
'coreCommit': '03c68e17ebab61da2ebb0a9f541a6cffac0908ac',
'coreCommit': '567f9fa6ee4ba005e9a3ddc5823312a6defb306e',
'numberOfParts': 2
}
}
+5
View File
@@ -822,6 +822,11 @@ apiWebdavProperties2/getFileProperties.feature:561
apiWebdavUpload1/uploadFile.feature:123
apiWebdavUpload1/uploadFile.feature:124
#
apiWebdavUpload1/uploadFile.feature:208
apiWebdavUpload1/uploadFile.feature:209
apiWebdavUpload1/uploadFile.feature:210
apiWebdavUpload1/uploadFile.feature:211
#
# https://github.com/owncloud/ocis-reva/issues/56 remote.php/dav/uploads endpoint does not exist
apiWebdavUpload1/uploadFileAsyncUsingNewChunking.feature:14
apiWebdavUpload1/uploadFileAsyncUsingNewChunking.feature:31
@@ -18,3 +18,20 @@ Feature: upload file
| dav_version | file_name |
| old | "file ?2.txt" |
| new | "file ?2.txt" |
@issue-product-127
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: uploading a file inside a folder changes its etag
Given using <dav_version> DAV path
And user "Alice" has created folder "/upload"
And user "Alice" has stored etag of element "/<element>"
When user "Alice" uploads file with content "uploaded content" to "/upload/file.txt" using the WebDAV API
Then the content of file "/upload/file.txt" for user "Alice" should be "uploaded content"
# And the etag of element "/<element>" of user "Alice" should have changed
And the etag of element "/<element>" of user "Alice" should not have changed
Examples:
| dav_version | element |
| old | |
| old | upload |
| new | |
| new | upload |