mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-02 02:11:18 -06:00
28 lines
1.2 KiB
Gherkin
28 lines
1.2 KiB
Gherkin
@api
|
|
Feature: upload file
|
|
As a user
|
|
I want to be able to upload files
|
|
So that I can store and share files between multiple client systems
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
And user "Alice" has been created with default attributes and without skeleton files
|
|
|
|
@skipOnOcis-OC-Storage @issue-product-127 @skipOnOcis-OCIS-Storage
|
|
# this scenario passes/fails intermittently on OC storage, so do not run it in CI
|
|
# 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 |
|