mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-19 11:32:30 -05:00
* run api tests * run ocis via wrapper * add context, helpers and steps change ocis config * remove separate pipelines for special test cases * add context to behat config * fix suite name * set wrapper url while running tests * fix cors allow env name * address review * add ociswrapper codebase * add ci pipeline to build and cache wrapper * add step to check ociswrapper cache * invalidate wrapper cache and build new * build on pipeline step * undo unnecessary changes * undo unnecessary changes * fix php code * fix ocis run command * use tag for teardown * exclude wrapper vendor in codacy check * fix typos
46 lines
2.3 KiB
Gherkin
46 lines
2.3 KiB
Gherkin
@api @env-config
|
|
Feature: delay post-processing of uploaded files
|
|
As a user
|
|
I want to delay the post-processing of uploaded files
|
|
So that I can check the early request
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
And async upload has been enabled with post processing delayed to "30" seconds
|
|
|
|
@issue-5326
|
|
Scenario Outline: user sends GET request to the file while it's still being processed
|
|
Given user "Alice" has uploaded file with content "uploaded content" to "/file.txt"
|
|
When user "Alice" requests "<dav_path>" with "GET" without retrying
|
|
Then the HTTP status code should be "425"
|
|
Examples:
|
|
| dav_path |
|
|
| /remote.php/webdav/file.txt |
|
|
| /remote.php/dav/files/%username%/file.txt |
|
|
| /dav/spaces/%spaceid%/file.txt |
|
|
|
|
|
|
Scenario Outline: user sends PROPFIND request to the file while it's still being processed
|
|
Given user "Alice" has uploaded file with content "uploaded content" to "/file.txt"
|
|
When user "Alice" requests "<dav_path>" with "PROPFIND" without retrying
|
|
Then the HTTP status code should be "207"
|
|
And the value of the item "//d:response/d:propstat/d:status" in the response should be "HTTP/1.1 425 TOO EARLY"
|
|
Examples:
|
|
| dav_path |
|
|
| /remote.php/webdav/file.txt |
|
|
| /remote.php/dav/files/%username%/file.txt |
|
|
| /dav/spaces/%spaceid%/file.txt |
|
|
|
|
|
|
Scenario Outline: user sends PROPFIND request to the folder while files in the folder are still being processed
|
|
Given user "Alice" has created folder "my_data"
|
|
And user "Alice" has uploaded file with content "uploaded content" to "/my_data/file.txt"
|
|
When user "Alice" requests "<dav_path>" with "PROPFIND" without retrying
|
|
Then the HTTP status code should be "207"
|
|
And as user "Alice" the value of the item "//d:status" of path "<dav_path>/" in the response should be "HTTP/1.1 200 OK"
|
|
And as user "Alice" the value of the item "//d:status" of path "<dav_path>/file.txt" in the response should be "HTTP/1.1 425 TOO EARLY"
|
|
Examples:
|
|
| dav_path |
|
|
| /remote.php/webdav/my_data |
|
|
| /remote.php/dav/files/%username%/my_data |
|
|
| /dav/spaces/%spaceid%/my_data | |