From d2ebb10339a2b07e4fb2ea09b4a002b776c51b91 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Thu, 5 Jan 2023 15:00:32 +0545 Subject: [PATCH] refactor PROPFIND tests --- .drone.star | 2 +- .../acceptance/expected-failures-localAPI-on-OCIS-storage.md | 5 ----- .../features/apiAsyncUpload/delayPostprocessing.feature | 5 +++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.drone.star b/.drone.star index 9c7d0f7252..645092e4a3 100644 --- a/.drone.star +++ b/.drone.star @@ -115,7 +115,7 @@ config = { "OCIS_CORS_ALLOW_ORIGINS": "https://aphno.badal", }, }, - "apiDelayPostprocessing": { + "apiDelayPostProcessing": { "suites": [ "apiAsyncUpload", ], diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index 2822e9a165..45a4d8bdcc 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -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: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. The bash script that processes this file requires that the last line has a newline on the end. diff --git a/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature b/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature index 1d4cace765..21584686ab 100644 --- a/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature +++ b/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature @@ -15,10 +15,11 @@ Feature: delay post-processing of uploaded files | /remote.php/dav/files/%username%/file.txt | | /dav/spaces/%spaceid%/file.txt | - @issue-5327 + Scenario Outline: user sends PROPFIND request to the file while it's still being processed When user "Alice" requests "" 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: | dav_path | | /remote.php/webdav/file.txt |