mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 14:39:23 -05:00
* tests: remove unused tags from the acceptance tests Remove the tags that neither the CI of opencloud nor the one of reva filters on, and that no hook uses: @smokeTest, @skipOnStorage:ceph, @skipOnStorage:scality, @skipOnOpencloud-decomposeds3-Storage (the CI only runs posix and decomposed), @sqliteDB, @notification and @skip-local-run. A tag line left empty becomes an empty line, so that the line numbers of the scenarios, which the expected failures of opencloud and reva refer to, stay the same. Also fix the typo @@skipOnReva, and write the issue tags the same way: @issues-<n> becomes @issue-<n>, @web-issue-<n> becomes @issue-web-<n>. Assisted-by: Claude Code:claude-opus-5-5 * tests: run the search properties scenarios as expected failures The two scenarios that check the properties of search results were skipped, since the search REPORT returns an empty d:getetag (#3501) and the step retried the whole check for 20 seconds, which made them too slow as expected failures. - retry the search only until the entry is indexed, then check its properties once: once found, the entry is complete, so a wrong value fails right away - check what the search returns: d:getcontentlength for files, the real size of 12 bytes, a file id of the form <uuid>$<uuid>!<uuid>, anchored patterns, and no oc:owner-id and oc:owner-display-name, which the search response never contains - list them as expected failures of #3501 instead of skipping them Without the d:getetag check, both scenarios pass. Assisted-by: Claude Code:claude-opus-5-5 * lint fix
133 lines
6.3 KiB
Gherkin
133 lines
6.3 KiB
Gherkin
@issue-1276 @skipOnReva
|
|
|
|
Feature: upload to a public link share
|
|
As a user
|
|
I want to create a public link with upload permission
|
|
So that the recipient can upload resources
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes
|
|
And user "Alice" has created folder "FOLDER"
|
|
|
|
@issue-10331
|
|
Scenario Outline: uploading file to a public upload-only share using public API that was deleted does not work
|
|
Given using <dav-path-version> DAV path
|
|
And using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
And user "Alice" has deleted folder "/FOLDER"
|
|
When the public uploads file "test.txt" with password "%public%" and content "test-file" using the public WebDAV API
|
|
And the HTTP status code should be "404"
|
|
|
|
@issue-1268
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
@issue-1269 @issue-10331
|
|
Scenario: uploading file to a public read-only share folder with public API does not work
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | view |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test-file" using the public WebDAV API
|
|
And the HTTP status code should be "403"
|
|
|
|
@issue-10331
|
|
Scenario: uploading to a public upload-only share with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test-file" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test-file"
|
|
And the following headers should match these regular expressions
|
|
| ETag | /^"[a-f0-9:\.]{1,32}"$/ |
|
|
|
|
@issue-10331
|
|
Scenario: uploading to a public upload-only share with password with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test-file" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test-file"
|
|
|
|
@issue-10331
|
|
Scenario: uploading to a public read/write share with password with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | edit |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test-file" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test-file"
|
|
|
|
@skipOnReva @issue-10331
|
|
Scenario: uploading file to a public shared folder with read/write permission when the sharer has insufficient quota does not work with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | edit |
|
|
| password | %public% |
|
|
And user "Admin" has changed the quota of the personal space of user "Alice" to "1"
|
|
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
|
Then the HTTP status code should be "507"
|
|
|
|
@skipOnReva @issue-10331
|
|
Scenario: uploading file to a public shared folder with upload-only permission when the sharer has insufficient quota does not work with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
And user "Admin" has changed the quota of the personal space of user "Alice" to "1"
|
|
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
|
Then the HTTP status code should be "507"
|
|
|
|
@issue-10331
|
|
Scenario: uploading to a public upload-write and no edit and no overwrite share with public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test2"
|
|
|
|
@issue-1267 @issue-10331
|
|
Scenario: uploading same file to a public upload-write and no edit and no overwrite share multiple times with new public API
|
|
Given using SharingNG
|
|
And user "Alice" has created the following resource link share:
|
|
| resource | FOLDER |
|
|
| space | Personal |
|
|
| permissionsRole | createOnly |
|
|
| password | %public% |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the following headers should match these regular expressions
|
|
| ETag | /^"[a-f0-9:\.]{1,32}"$/ |
|
|
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test"
|
|
And the content of file "/FOLDER/test (2).txt" for user "Alice" should be "test2"
|