Commit Graph
21 Commits
Author SHA1 Message Date
Pascal Bleser bae276fde6 test(acceptance): fail on responses that are cut off after their headers
When the transfer of a response broke off after its headers, e.g.
because the server aborted it, sendRequestOnce caught the exception and
passed the incomplete response on as if it were complete. Tests then
failed later, and misleadingly, e.g. with a JsonException on the cut-off
body, or passed when they only checked the status code.

Re-throw Guzzle's ResponseTransferException, so that such a test fails
at the request, with the transfer error (e.g. cURL error 18).

Refs #4008

Assisted-by: Claude Code:claude-opus-5-5
2026-11-16 12:01:55 +01:00
Sawjan Gurung 9bb2d22b39 test(api): simply HTTP request retry conditions (#3696)
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2026-10-12 12:37:35 +05:45
Viktor Scharf 658a782007 test: retry acceptance requests while share manager is migrating (#3681) 2026-10-09 09:33:57 +05:45
Sawjan Gurung cc8a161fce test(api): update php test dependencies (#3335)
* test: update php dependencies

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: use custom tus client

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix php code style and commands

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: use doctrine coding standard

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: convert headers value to string

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: initialize phpunit config

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix tus upload

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix php code style

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2026-08-21 19:38:34 +02:00
Viktor Scharf 38d6ad53cd replace exception to assersion (#2196) 2026-01-22 07:22:12 +01:00
Sawjan Gurung d49123b36b test: auto-generate virus files before test run (#2191)
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2026-01-21 14:07:41 +05:45
Viktor Scharf 3eac173644 fix flaky #2145 2026-01-15 13:23:44 +01:00
Sawjan Gurung 8d092b49a9 test: wait post-processing to finish for MKCOL requests (#2092)
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-12-30 14:58:17 +05:45
Sawjan Gurung 3ea736c283 [full-ci][tests-only] test: check last email content with retries as emails can be delayed (#2038)
* test: check last email content with retries

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: cleanup unused const

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-12-16 18:08:22 +05:45
Sawjan Gurung cffeb4a690 [full-ci][tests-only] test: fix some test flakiness (#2003)
* test: check content after upload

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

test: check content with retry

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: check empty body before json decoding

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: wait post-processing for webdav requests if applicable

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: check token before doing request

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

test: check body before json decoding

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

test: add wait step

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-12-15 14:45:12 +05:45
Viktor Scharf f04f6ad470 [full-ci] feat: implement OIDC authentication option (#1676)
* feat: implement Bearer Token authentication option

* fix
2025-10-27 11:17:44 +01:00
Jörn Friedrich Dreyer a5c9cbc26e drop project reference in testsuite headers, copyright and license remain
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-29 17:20:44 +01:00
Viktor Scharf 9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
amrita c652cbc604 add tests on list permission with query 2025-01-06 10:11:23 +05:45
Niraj Acharya 089ccc1ca3 updating lint rules for test code 2024-12-30 09:18:45 +05:45
Saw-jan 766ad4b40c ci: make remote.php default
docs: add documentation

test: rename uniquePath to suffixPath
2024-10-21 17:08:25 +05:45
Saw-jan f86d137f87 test: make remote.php configurable
test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
2024-10-21 16:57:58 +05:45
Saw-jan ca82ac03fc test: allow multiple xpaths checks 2024-10-02 13:37:34 +05:45
Saw-jan 732f2b241e test: rename PROPFIND response check steps
test: fix tests
2024-10-02 13:33:33 +05:45
prashant-gurung899 250650265c cleanup parallel deployment tests
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-10 12:02:33 +05:45
prashant-gurung899 d8d7b700cd reorganize test folders within the acceptance directory
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-08-28 14:54:45 +05:45