mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-06 08:17:42 -05:00
32 lines
2.1 KiB
Gherkin
32 lines
2.1 KiB
Gherkin
@api @files_sharing-app-required @public_link_share-feature-required @skipOnOcis-EOS-Storage @issue-ocis-reva-315 @issue-ocis-reva-316
|
|
|
|
Feature: create a public link share
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
|
|
@issue-37605 @skipOnOcis-OCIS-Storage
|
|
# after fixing all issues make the oC10 scenario like this one, and delete this scenario
|
|
Scenario: Get the mtime of a file inside a folder shared by public link using new webDAV version (run on OCIS)
|
|
Given user "Alice" has created folder "testFolder"
|
|
And user "Alice" has created a public link share with settings
|
|
| path | /testFolder |
|
|
| permissions | read,update,create,delete |
|
|
When the public uploads file "file.txt" to the last shared folder with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the new public WebDAV API
|
|
Then 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"
|
|
And the mtime of file "file.txt" in the last shared public link using the WebDAV API should be "Thu, 08 Aug 2019 04:18:13 GMT"
|
|
|
|
@issue-37605 @skipOnOcis-OCIS-Storage
|
|
# after fixing all issues make the oC10 scenario like this one, and delete this scenario
|
|
Scenario: overwriting a file changes its mtime (new public webDAV API) (run on OCIS)
|
|
Given user "Alice" has created folder "testFolder"
|
|
When user "Alice" uploads file with content "uploaded content for file name ending with a dot" to "testFolder/file.txt" using the WebDAV API
|
|
And user "Alice" has created a public link share with settings
|
|
| path | /testFolder |
|
|
| permissions | read,update,create,delete |
|
|
And the public uploads file "file.txt" to the last shared folder with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the new public WebDAV API
|
|
Then 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"
|
|
And the mtime of file "file.txt" in the last shared public link using the WebDAV API should be "Thu, 08 Aug 2019 04:18:13 GMT"
|