Commit Graph
61 Commits
Author SHA1 Message Date
Viktor Scharf 67d63d608e tests: remove unused tags, run the search properties scenarios as expected failures (#4142)
* 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
2026-11-27 08:01:41 +00:00
Viktor Scharf bb2db1de60 test(search): cover trailing NOT operator in invalid KQL patterns (#3982)
* test(search): cover trailing NOT operator in invalid KQL patterns

* skip downloadFile:321 for reva
2026-11-16 08:43:59 +01:00
Dominik Schmidt 44ef380168 fix(proxy): allow blob: in media-src for motion and live photo playback 2026-11-04 12:14:54 +01:00
Alex b2cf7a965f fix(csp): allow blob: in style-src for EPUB reader iframe (#3300) 2026-08-13 13:16:04 +02:00
Michael Stingl 3893be6ed1 test(coreApiWebdavOperations): download a file with a literal "%" via its oc:downloadURL (#3079)
A file whose name contains a literal "%" 404s on download because the
server-built oc:downloadURL did not percent-encode the path (#2852, fixed in
reva by https://github.com/opencloud-eu/reva/pull/653). Add a scenario mirroring
the web client download flow: read the oc:downloadURL from PROPFIND and GET it
as-is (the signature in the URL authenticates it), asserting 200 and the content.

The new step "user X downloads the P file via its oc:downloadURL" lives in
WebDavPropertiesContext; a regex annotation avoids the ":" in oc:downloadURL
colliding with the turnip :placeholder syntax.

Verified red->green on posix and decomposed: red on an opencloud built on a reva
with the fix reverted (the download 404s), green on the shipped reva.

https://github.com/opencloud-eu/opencloud/issues/2852
2026-07-17 14:20:00 +02:00
Ralf Haferkamp c33850f213 Reapply "adapt test for #514 (#2255)" (#2305)
This reverts commit f21207ed96.
2026-02-09 14:23:24 +01:00
Ralf Haferkamp f21207ed96 Revert "adapt test for #514 (#2255)"
This reverts commit 400dc9f8ae.
2026-02-05 10:33:26 +01:00
Viktor Scharf 400dc9f8ae adapt test for #514 (#2255) 2026-02-03 19:51:33 +01:00
Viktor Scharf 567e8a7e8c api-test: upload-rename-download file with back slash (#2239) 2026-02-02 07:59:51 +01:00
Benedikt KulmannandViktor Scharf 487a2a0aa6 fix: add update server to default csp rules (#1875)
* fix: add update server to default csp rules

* adapt tests

---------

Co-authored-by: Viktor Scharf <v.scharf@opencloud.eu>
2025-11-21 17:13:22 +01:00
Tyler Morgan 788b54267a Correct app store URL (#1412) 2025-09-01 10:52:42 +02:00
Viktor Scharf 877b8e45e0 squash two search.feature 2025-02-14 10:45:27 +01:00
Viktor Scharf c49915066c enable search tests 2025-02-14 09:26:32 +01:00
Viktor Scharf 1c23e8a3a2 run all core tests 2025-01-21 17:25:00 +01:00
Viktor Scharf 9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
Jörn Friedrich Dreyer a46fd132bd use OC_ env prefix
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:11:11 +01:00
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Sabin b5d5afcd5c remove old dav path for public share 2024-11-19 14:54:02 +05:45
Prajwol Amatya 33a99d6de3 extend webdav tests for old, new and spaces path 2024-11-19 09:07:45 +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
Viktor Scharf b09fda0b2d fix tests 2024-09-09 07:56:03 +02:00
Viktor Scharf 3a9cf9857b fix tests 2024-08-19 10:01:26 +02:00
Saw-jan 1784577fe7 test: fix issue numbers 2024-08-13 12:05:44 +05:45
amrita e3195eed24 remove reve master tag 2024-07-08 14:48:40 +05:45
Jannik Stehle 4e7044f915 test: fix content-disposition in acceptance tests 2024-07-08 09:24:35 +02:00
Roman Perekhod 572b32075e adapt test 2024-07-08 09:24:35 +02:00
Michael Barz 75213c53eb tests: fix test expectations 2024-06-10 17:57:54 +02:00
Michael Barz 817b6e3e96 tests: fix test expectations for multipart 2024-06-06 13:46:15 +02:00
Thomas Müller 03bd1d5272 fix: CSP frame-src to enable PDF viewing (#9313) 2024-06-04 14:29:21 +02:00
Sabin Panta 83374e5c65 adding skip tag (#9200) 2024-05-24 11:34:51 +05:45
Prarup Gurung 8717959540 propfind.feature: Used sharingNG for sharing in given step 2024-05-20 15:49:50 +05:45
Prarup Gurung f98304cac6 listFiles.feature: Used sharingNG for sharing in given step 2024-05-20 15:49:50 +05:45
Thomas Müller 9bc958e8be fix: token refresh in single binary and wopi deployment example (#9167) 2024-05-16 18:20:18 +02:00
nirajacharya2 9db4c51572 removing usage of a stepdefination inside another stepdefination in Provisioning (#8892) 2024-05-02 15:36:03 +05:45
Sawjan Gurung 5c7c363e2b [tests-only] add API tests for file download and rename edge cases (#9018)
* test: add API tests to download deleted file

* test: add more MOVE/rename API tests

* do not reuse step def method

* remove unused step

* fix typo

* fix tests

* update expected failure

* update expected failure
2024-05-02 12:21:35 +05:45
Thomas Müller bdbba929d0 feat: add CSP and other security related headers in the oCIS proxy service (#8777)
* feat: add CSP and other security related headers in the oCIS proxy service

* fix: consolidate security related headers - drop middleware.Secure

* fix: use github.com/DeepDiver1975/secure

* fix: acceptance tests

* feat: support env var replacements in csp.yaml
2024-04-26 09:10:35 +02:00
Prarup Gurung ba7d91ebce Used kebab case for example table header name 2024-03-21 09:06:38 +05:45
Sawjan Gurung 24da3631db [tests-only] API test coverage content-disposition header with filename having quotes (#8390)
* extend content-dispostion tests

* extend content-dispostion tests
2024-02-07 17:44:55 +05:45
Saw-jan fc5a8f967b test: API coverage for Content-Disposition header with file having comma 2024-02-07 11:39:43 +05:45
Phil Davis ee533d55cd Update downloadFile feature for expected Content-Disposition 2024-02-07 09:23:50 +05:45
Sabin Panta f280a00b7c adding skip on reva tag (#7856) 2023-11-30 17:56:35 +05:45
Sawjan Gurung 334684f2b6 extend depth:infinity enabled tests (#7397) 2023-11-27 15:54:17 +05:45
Prarup Gurung ba0015385d Added @env-config tags 2023-11-22 14:29:07 +05:45
Viktor Scharf 91ae5172f6 [full-ci]Enforce pass by default. changed api tests (#7706)
* set enforce pass by default. change tests

* fix tests

* fix test
2023-11-13 23:37:12 +01:00
Nalem7andnabim777 efafb64cab [tests-only][full-ci] refactor profind response (#7327)
* refactor profind response for path checking strictly

* refactor searchResponse also for xpath checking

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-10-10 12:57:41 +05:45
Sawjan Gurung 0bf863b451 [tests-only] Added tests with depth:infinity enabled (#7395)
* add depth infinity tests

* fix step

* add passing tests only

* format rable
2023-10-04 11:51:24 +05:45
Sawjan Gurung c59b597984 [tests-only] Run tests with default propfind depth infinity config (#7334)
* use default config for OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY

* remove unnecessary steps

* use default propfind depth infinity value

* use correct step to check the resources

* use correct step to check the resources

* cover depth:infinity enabled test cases

* fix steps

* fix scenario steps

* update expected failure list

* add depth infinity test suite to ci

* update existing tests only

* remove test with depth:infinity
2023-10-03 09:26:31 +05:45
Florian Schade 844783b6f9 [full-ci] - use KQL as default search query language (#7212)
* enhancement: use kql as default search query language

* enhancement: add support for unicode search queries

* fix: escape bleve field query whitespace

* fix: search related acceptance tests

* enhancement: remove legacy search query language

* enhancement: add support for kql dateTime restriction node types

* chore: bump web to v8.0.0-alpha.2

* fix: failing search api test

* enhancement: search bleve query compiler use DateRangeQuery as DateTimeNode counterpart

* enhancement: support for colon operators in dateTime kql queries
2023-09-07 11:13:33 +02:00
nirajacharya2 5f93a22eb9 removing @api tag from all acceptance feature files (#7027) 2023-08-16 09:29:00 +05:45
Sabin Panta f2498e1fdf Refactoring example table scenerio (#6697) 2023-07-12 12:42:32 +05:45