Commit Graph
35 Commits
Author SHA1 Message Date
Pascal Bleser 9c99eeae36 test: 1419: acceptance tests for the revision cleanup
A new cliCommands feature, cleanupFileVersions.feature, tests the
"storage-users revisions cleanup" command against a running server,
checking the remaining versions through the WebDAV versions API:

- keeping the newest version of every file in all spaces
- a dry run, which deletes nothing
- only a folder within the personal space (--space with --path)
- only a project space (--space)
- the JSON output (--json)
- no strategy while the configured one is disabled: exit code 1
- a timeout: exit code 2, nothing deleted
- a strategy without spaces after its commas ("auto,1"), as the CLI
  wrapper splits commands on spaces
- a folder by its path on disk (--fs-path), posix only
- the configured strategy (STORAGE_USERS_REVISIONS_CLEANUP_STRATEGY),
  which cleans up a file whenever it gets a new version: without
  background workers, and with them, the default
- the configured strategy for uploads with TUS, as the web UI and the
  clients upload
- the age of a version, which is the time its content was written:
  uploads with an older modification time (X-OC-Mtime) make versions
  that "30d" deletes right away, while "1,30d" keeps the newest one
- restoring a version with the strategy "0": the content from before
  the restore is kept, so that the restore can be undone

A second feature, collaborativePosix/cleanupFileVersions.feature, tests
the versions that changes on the POSIX filesystem create, with
STORAGE_USERS_POSIX_ENABLE_FS_REVISIONS: the configured strategy cleans
up a file whenever a change on disk creates a version, with and without
background workers, and the command deletes such versions. The
collaborativePosix suite doesn't run in the CI for now
(https://github.com/opencloud-eu/opencloud/issues/2036), so these
scenarios are ready for when it does again; they pass locally. The
suite gets the FilesVersionsContext, whose steps its existing version
scenarios already use.

New steps: in CliContext, running the command for all spaces, a space,
a path within a space, a path on the POSIX filesystem, or with flags
only; checking the exact exit code; and checking the objects of a JSON
output, which "the command output should contain" can't match as it
contains quotes. In FilesVersionsContext, a number of versions that is
checked until it matches, for the cleanup that runs in the background
after postprocessing. In WebDav, the Given form of an upload with
content and a modification time.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +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 994086ceb2 add search retry to all serach tests (#3500) 2026-09-09 15:21:23 +02:00
Viktor Scharf a53eb44083 steps refactoring (#3100) 2026-07-14 09:32:35 +02: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 6e7538a834 replace CI images 2026-01-09 11:42:43 +01:00
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
Saw-jan c3a7892889 test: proper resource existence check
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-12-09 10:51:06 +05:45
Florian Schade fb8af22073 chore: bump reva (#1701)
* chore: bump reva

* enhancement(test): add postprocessing wait helper
2025-10-27 12:01:27 +01:00
Viktor Scharf c49915066c enable search tests 2025-02-14 09:26:32 +01:00
Viktor Scharf 72fd765b93 delete unnecessary steps from context files 2025-02-05 19:43:12 +01:00
Viktor Scharf 9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
Niraj Acharya 089ccc1ca3 updating lint rules for test code 2024-12-30 09:18:45 +05:45
pradip e4a836503f test(refactor): refactor some scenarios to the original and step definition 2024-12-13 10:02:41 +05:45
pradip 4515240a67 test(refactor): remove variable in other code 2024-12-10 11:28:57 +05:45
pradip 3b9ee2e49f refactor: set chunking version 1 as default 2024-12-10 11:28:57 +05:45
prashant-gurung899 fe0da6511d add test to list copied folder ocm share
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-12-05 11:31:24 +05:45
amrita e83b63ffe6 rename variable name and remove unwanted function 2024-12-02 16:53:12 +05:45
amrita e76ba90bee remove getResponseXml 2024-12-02 16:51:51 +05:45
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Saw-jan bc63c2cbd7 test: merge similar steps 2024-11-27 14:54:18 +05:45
Saw-jan 5bbe356d36 test: store preview content for comparison 2024-11-27 14:54:18 +05:45
prashant-gurung899 1c14c03e53 add tests to download thumbnail preview of a federated share image
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-11-27 12:35:36 +05:45
Saw-jan 7c1c9ddacc test: add tests to check file uploads with same mtime 2024-11-21 10:04:31 +05:45
Prajwol Amatya 33a99d6de3 extend webdav tests for old, new and spaces path 2024-11-19 09:07:45 +05:45
Sabin 471d43a4e6 beautify feature file 2024-11-13 09:57:46 +05:45
Sabin d7b237eee2 updated feature file to remove trailing slash for folder propfind request 2024-11-13 09:53:49 +05:45
prashant-gurung899 d2af9fe20d add test to check file rename activity using file-id
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-10-23 15:03:16 +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
Niraj Acharya e906f9f9b5 refactoring test code 2024-10-08 14:46:33 +05:45
Niraj Acharya db844fb5ab removing SPACE_ID_FROM_OCIS from test code 2024-10-03 09:08:10 +05:45
prashant-gurung899 d7fc256009 add test to download preview with all processors
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-25 11:42:17 +05:45
prashant-gurung899 417294e520 add test to download preview with preview set to zero
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-25 09:51:31 +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