Commit Graph
52 Commits
Author SHA1 Message Date
Viktor Scharf 05b0830cbf test: wait for the share sync in the Given steps that create shares (#4158)
* test: wait for the share sync in the Given steps that create shares

Shares are synced (auto-accepted) asynchronously by the sharing service,
so the scenarios waited for it with "user ... has a share ... synced"
after each share. Where they didn't, the following steps could race with
it, e.g. a hide sent before the auto-accept was overwritten by it.

The Given steps that create user and group shares now wait until the
share is synced for each user it was sent to (the members of a group),
unless the user has auto-sync turned off. The "has a share ... synced"
steps that only followed such a Given step are removed, and the line
references of the expected failures are updated.

Assisted-by: Claude Code:claude-opus-5-5

* test: don't wait for the sync of a share with the role Denied

A share with the role Denied gives no access, so it never shows up in
the shared-with-me list of the sharee, and the wait for its sync timed
out.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-29 10:42:57 +00:00
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
Sawjan Gurung 38786ab291 [tests-only] test: fix API tests (#2087)
* test: use placeholder value

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

* test: fix antivirus test expectations

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

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-12-30 10:29:09 +05:45
Florian Schade f465a2bfa9 fix: flaky integration tests 2025-12-15 16:44:18 +01:00
Viktor Scharf 93d84478a4 removed test virus files from repo (#1812)
* remove virus file from repo

* doenload zip file

* adjust tests
2025-11-10 09:38:51 +01:00
prashant-gurung899 9193df0385 tests: update antivirus tests for zip files
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-06-04 14:01:51 +05:45
Artur Neumann 87def992c8 fix expected spanish string in test 2025-04-07 12:40:48 +05:45
prashant-gurung899 baf4a7a8c5 run local Api Tests in CI
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-03-14 17:34:23 +05:45
Viktor Scharf 6e6feab07a skip test for spanish languages 2025-02-11 12:01:14 +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
amrita acc993ab36 santize service health and reasy url 2024-12-31 15:06:16 +05:45
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Prajwol Amatya 34dc52d426 update the scenarios for service availability check 2024-11-28 16:01:30 +05:45
Viktor Scharf 1789a1ad43 fix after review 2024-11-28 09:11:51 +05:45
Viktor Scharf 18e0af90b7 add test for checking service ready and health 2024-11-28 09:11:50 +05:45
Prajwol Amatya 9a7c8a43f8 Merge pull request #10610 from owncloud/merge-antivirus-test-scenarios
[tests-only][full-ci] merge similar test scenraios in antivirus test
2024-11-21 09:44:43 +05:45
Prajwol Amatya 7697c354d5 merge similar test scenraios in antivirus test 2024-11-20 12:07:17 +05:45
Sabin b5d5afcd5c remove old dav path for public share 2024-11-19 14:54:02 +05:45
Prajwol Amatya 9d6bd35bb5 extend dav paths versions 2024-11-19 13:05:34 +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
Saw-jan 878c5f4075 test: ensure share is available before performing actions
test: fix expected-failure lines
2024-07-26 15:19:33 +05:45
Sawjan Gurung abb537f08f [tests-only] separate different SharingNG share steps (#9097)
* separate When steps using root and permissions endpoints

test: separate resource sharing GIven step from space share

test: share space via root endpoint in Given steps

test: use existing step

test: fix more steps

* test: separate resource and space link share creation

test: fix php code style
2024-05-08 14:22:52 +05:45
Sabin Panta 6ac17a9155 updating antivirus feature file (#9024) 2024-04-30 16:28:23 +05:45
Sabin Panta 8b9d5da7ec [tests-only][full-ci] changed given statement of sharing link in api antivirus feature file (#8914)
* changed given statement of sharing link in api antivirus feature file

* updated scenerio of uploading virus inside public share

* added step defnitin for uploading file via public link
2024-04-30 12:26:21 +05:45
Prarup Gurung 3055d5912a Used kebab case for example table header name 2024-03-19 10:05:49 +05:45
Swikriti Tripathi 580e8aeb46 tests: add api tests for changing system language using graph api (#7817) 2023-11-28 15:33:17 +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
Sabin Panta 1c6600365c [tests-only][full-ci] Refactoring all graphapi related featurefile wording (#7389)
* refactoring the feature file steps

* addressing review
2023-10-30 17:57:42 +05:45
Viktor Scharf c179485db6 [full-ci] ApiTests. enable auto accepting in api tests (#7477)
* enable auto accepting in test

* go format
2023-10-17 16:29:05 +02:00
Karun Atreya 903ab8e1f8 [tests-only] [full-ci] removing the setresponse in given/then step in webdav context (#7403)
* refactoring the given steps in the webdav context

* refactored remaining given/when/then steps

* return file id

* trim trailing from the folder path

* add missing when step and make other minor corrections

* set responseXml and correct status code check

* correct the naming of steps and helper functions
2023-10-11 16:15:31 +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
ownClouders ed784efebd removed api tag from antivirus test 2023-08-08 10:39:30 +05:45
Karun Atreya 078c7e036c added step to check notification with subject and resource (#6675) 2023-07-26 10:07:45 +05:45
nirajacharya2 5524658f86 added antivirus test for overwriting a file with virus content in project space share (#6623) 2023-06-27 15:28:40 +05:45
nirajacharya2 cd304b4df8 added antivirus test for overwriting the .space/readme.md file (#6615) 2023-06-26 16:41:20 +05:45
KarunAtreya 0de8222461 adapt the scenario for sharing file as well as file inside a folder 2023-06-26 12:03:04 +05:45
KarunAtreya d9298dbb73 added scenarios for overwrite file with virus content in user share 2023-06-26 11:57:19 +05:45
nirajacharya2andKarun Atreya 82f5f25bfe [tests-only][full-ci]added scenario for overwrite file with virus content in a public link (#6586) (#6600)
* added scenario for overwrite file with virus content in a public link

* changed sharer overwrite step with public overwrite

Co-authored-by: Karun Atreya <33852651+KarunAtreya@users.noreply.github.com>
2023-06-23 15:13:01 +05:45
Karun Atreya 82fd405825 [tests-only][full-ci]added scenario for overwrite file with virus content in a public link (#6586)
* added scenario for overwrite file with virus content in a public link

* changed sharer overwrite step with public overwrite
2023-06-23 11:24:03 +05:45
Sabin Panta edc00ebd12 [tests-only]Add test for ANTIVIRUS_INFECTED_FILE_HANDLING (#6498)
* Corrected the issues in scenerio

* rebase current branch
2023-06-22 09:38:30 +02:00
Artur Neumann 86d5e2564c Merge pull request #6538 from owncloud/useGraphinsteadOfSettingMethodInTests
[test-only][full-ci] using graph method instead of setting in api tests
2023-06-16 10:36:00 +05:45
Nalem7andnabim777 e3ff3418b0 [tests-only][full-ci]add test for creating a version file with virus content (#6521) (#6535)
* add test for creating a version file with virus content

* rebasing

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-16 09:09:38 +05:45
Viktor Scharf 5867dae18f using Graph instead Of Setting Method In Tests 2023-06-15 17:03:53 +02:00
Sabin Panta 0bd628a956 scenerio added only for Deutsch and Spanish language (#6523) 2023-06-15 14:32:34 +05:45
Nalem7andnabim777 c9393e79b8 update public sharing test for zip virus file (#6506)
Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-14 15:30:00 +05:45
Sabin Panta 111ff55579 add tests by setting ANTIVIRUS_MAX_SCAN_SIZE env (#6484) 2023-06-14 12:26:10 +05:45
Nalem7andnabim777 03045c5ccc add tests for project space (#6485)
Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-13 14:36:17 +05:45
Nalem7andnabim777 cb16fd5843 [tests-only][full-ci]add test for antivirus user group sharing (#6463)
* add test for antivirus user and group share

* added test for 3 file

* deduct of one file

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-12 17:12:01 +05:45
Nalem7andnabim777 f16f9bf7d1 add test for antivirus public link (#6454)
Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-09 10:07:15 +05:45