refactor PROPFIND tests
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ config = {
|
|||||||
"OCIS_CORS_ALLOW_ORIGINS": "https://aphno.badal",
|
"OCIS_CORS_ALLOW_ORIGINS": "https://aphno.badal",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"apiDelayPostprocessing": {
|
"apiDelayPostProcessing": {
|
||||||
"suites": [
|
"suites": [
|
||||||
"apiAsyncUpload",
|
"apiAsyncUpload",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -99,10 +99,5 @@ The expected failures in this file are from features in the owncloud/ocis repo.
|
|||||||
- [apiAsyncUpload/delayPostprocessing.feature:15](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L15)
|
- [apiAsyncUpload/delayPostprocessing.feature:15](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L15)
|
||||||
- [apiAsyncUpload/delayPostprocessing.feature:16](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L16)
|
- [apiAsyncUpload/delayPostprocessing.feature:16](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L16)
|
||||||
|
|
||||||
#### [PROPFIND a file while it's in processing doesn't return 425 code (async uploads)](https://github.com/owncloud/ocis/issues/5327)
|
|
||||||
- [apiAsyncUpload/delayPostprocessing.feature:24](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L24)
|
|
||||||
- [apiAsyncUpload/delayPostprocessing.feature:25](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L25)
|
|
||||||
- [apiAsyncUpload/delayPostprocessing.feature:26](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature#L26)
|
|
||||||
|
|
||||||
Note: always have an empty line at the end of this file.
|
Note: always have an empty line at the end of this file.
|
||||||
The bash script that processes this file requires that the last line has a newline on the end.
|
The bash script that processes this file requires that the last line has a newline on the end.
|
||||||
|
|||||||
@@ -15,10 +15,11 @@ Feature: delay post-processing of uploaded files
|
|||||||
| /remote.php/dav/files/%username%/file.txt |
|
| /remote.php/dav/files/%username%/file.txt |
|
||||||
| /dav/spaces/%spaceid%/file.txt |
|
| /dav/spaces/%spaceid%/file.txt |
|
||||||
|
|
||||||
@issue-5327
|
|
||||||
Scenario Outline: user sends PROPFIND request to the file while it's still being processed
|
Scenario Outline: user sends PROPFIND request to the file while it's still being processed
|
||||||
When user "Alice" requests "<dav_path>" with "PROPFIND" without retrying
|
When user "Alice" requests "<dav_path>" with "PROPFIND" without retrying
|
||||||
Then the HTTP status code should be "425"
|
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:
|
Examples:
|
||||||
| dav_path |
|
| dav_path |
|
||||||
| /remote.php/webdav/file.txt |
|
| /remote.php/webdav/file.txt |
|
||||||
|
|||||||
Reference in New Issue
Block a user