mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 18:45:04 -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
126 lines
5.7 KiB
Gherkin
126 lines
5.7 KiB
Gherkin
@issue-1343
|
|
Feature: upload file using old chunking
|
|
As a user
|
|
I want to be able to upload "large" files in chunks
|
|
So that the upload can be completed in less elapsed time
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
And user "Alice" has been created with default attributes
|
|
|
|
|
|
Scenario Outline: upload chunked file in ascending order
|
|
Given using <dav-path-version> DAV path
|
|
When user "Alice" uploads the following "3" chunks to "/myChunkedFile.txt" with old chunking and using the WebDAV API
|
|
| number | content |
|
|
| 1 | AAAAA |
|
|
| 2 | BBBBB |
|
|
| 3 | CCCCC |
|
|
Then the HTTP status code should be "201"
|
|
And the following headers should match these regular expressions for user "Alice"
|
|
| ETag | /^"[a-f0-9:\.]{1,32}"$/ |
|
|
And as "Alice" file "/myChunkedFile.txt" should exist
|
|
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: upload chunked file in descending order
|
|
Given using <dav-path-version> DAV path
|
|
When user "Alice" uploads the following "3" chunks to "/myChunkedFile.txt" with old chunking and using the WebDAV API
|
|
| number | content |
|
|
| 3 | CCCCC |
|
|
| 2 | BBBBB |
|
|
| 1 | AAAAA |
|
|
Then the HTTP status code should be "201"
|
|
And as "Alice" file "/myChunkedFile.txt" should exist
|
|
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: upload chunked file in random order
|
|
Given using <dav-path-version> DAV path
|
|
When user "Alice" uploads the following "3" chunks to "/myChunkedFile.txt" with old chunking and using the WebDAV API
|
|
| number | content |
|
|
| 2 | BBBBB |
|
|
| 3 | CCCCC |
|
|
| 1 | AAAAA |
|
|
Then the HTTP status code should be "201"
|
|
And as "Alice" file "/myChunkedFile.txt" should exist
|
|
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: checking file id after a move overwrite using old chunking endpoint
|
|
Given using <dav-path-version> DAV path
|
|
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
|
And user "Alice" has copied file "/textfile0.txt" to "/existingFile.txt"
|
|
And user "Alice" has stored id of file "/existingFile.txt"
|
|
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/existingFile.txt" in 3 chunks using the WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And user "Alice" file "/existingFile.txt" should have the previously stored id
|
|
And the content of file "/existingFile.txt" for user "Alice" should be:
|
|
"""
|
|
This is a testfile.
|
|
|
|
Cheers.
|
|
"""
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
# This scenario does ordinary checks for chunked upload,
|
|
# without adjusting the log level. This allows it to run in test environments
|
|
# where the log level has been fixed and cannot be changed.
|
|
Scenario Outline: chunked upload files with difficult name
|
|
Given using <dav-path-version> DAV path
|
|
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/<file-name>" in 3 chunks using the WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And as "Alice" file "/<file-name>" should exist
|
|
And the content of file "/<file-name>" for user "Alice" should be:
|
|
"""
|
|
This is a testfile.
|
|
|
|
Cheers.
|
|
"""
|
|
Examples:
|
|
| dav-path-version | file-name |
|
|
| old | &#? TIÄFÜ @a#8a=b?c=d ?abc=oc # |
|
|
| old | 0 |
|
|
| new | &#? TIÄFÜ @a#8a=b?c=d ?abc=oc # |
|
|
| new | 0 |
|
|
| spaces | &#? TIÄFÜ @a#8a=b?c=d ?abc=oc # |
|
|
| spaces | 0 |
|
|
|
|
|
|
Scenario Outline: upload chunked file with old chunking with lengthy filenames
|
|
Given using <dav-path-version> DAV path
|
|
When user "Alice" uploads the following chunks to "नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-12345678910.txt" with old chunking and using the WebDAV API
|
|
| number | content |
|
|
| 1 | AAAAAAAAAAAAAAAAAAAAAAAAA |
|
|
| 2 | BBBBBBBBBBBBBBBBBBBBBBBBB |
|
|
| 3 | CCCCCCCCCCCCCCCCCCCCCCCCC |
|
|
Then the HTTP status code should be "201"
|
|
And the following headers should match these regular expressions for user "Alice"
|
|
| ETag | /^"[a-f0-9:\.]{1,32}"$/ |
|
|
And as "Alice" file "नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-12345678910.txt" should exist
|
|
And the content of file "नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-नेपालि-file-नाम-12345678910.txt" for user "Alice" should be "AAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCC"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|