Commit Graph
34 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
amrita-shrestha 2d16e6e693 Remove mtime 500 issue from expected failure 2025-03-25 22:44:28 +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
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +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 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 3883e17b52 test: ensure share is available 2024-07-24 11:35:45 +05:45
Roman Perekhod 572b32075e adapt test 2024-07-08 09:24:35 +02:00
Sabin Panta 83374e5c65 adding skip tag (#9200) 2024-05-24 11:34:51 +05:45
Prarup Gurung 784714576c fileVersions.feature: Used sharingNG for sharing in given step 2024-05-21 15:28:39 +05:45
Prarup Gurung ba7d91ebce Used kebab case for example table header name 2024-03-21 09:06:38 +05:45
Christian Richter b802a1848f update testsuite
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-02-06 15:45:13 +01:00
Sawjan Gurung c8818f5dd5 add test coverage for checking file versions after multiple restores (#8188) 2024-01-24 17:09:54 +05:45
Sawjan Gurung ff10d011e0 [tests-only] Added test coverage for checking file versions after MOVE (#8183)
* add test coverage for checking file versions after MOVE

* fix php style

* address reviews
2024-01-12 10:34:44 +01:00
nirajacharya2 5b165e3209 adding test for getting versions of a file after moving it (#8013) 2024-01-10 17:11:45 +05:45
Sawjan Gurung 8eb7f7aa96 [tests-only] skip sharing tests in reva (#7591)
* do not use spacesContext

* skip sharing tests in reva

* update expected failure list

* do not cleanup status codes

* skip shares tests in reva

* update expected failure list
2023-10-27 12:37:09 +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
Sabin PantaandSaw-jan 5efc3c51a1 [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext (#7019)
* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-09-06 09:22:38 +05:45
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
Prajwol Amatya 941ef59cc9 refactor scenario example table (#6694) 2023-07-04 15:54:16 +05:45
Sabin Panta 9b4244b086 [tests-only] [full-ci] Refactoring unshare step definition code (#6608)
* added unshare scenerio

* remove unshare keyword from step definition

* refactoring of step definition codes

* refactor
2023-06-30 12:22:42 +05:45
prajwol edc8e96469 refactored feature files 2023-06-08 14:59:03 +05:45
amrita 484f333c61 Remove unneccessary tag 2023-05-04 14:39:50 +05:45
amrita 73c327bdf0 Remove file sharing app 2023-05-04 12:42:14 +05:45
Michael BarzandViktor Scharf f80cc175fd [full-ci] Do not share versions (#5531)
* change test expectations

* bump reva  version

* add changelog

* fix test

* php style fix

* bump webCommit. fixt contarct tests

* change webBranch

* change webBranch

* new web commit

* fix flaky draw.io file

* fix after review

---------

Co-authored-by: Viktor Scharf <scharf.vi@gmail.com>
2023-04-06 12:52:38 +02:00
Prarup Gurung f3bf0894fc Removed core issue tag, refactored ocis-reva, ocis issue tag 2023-03-31 17:27:18 +05:45
Sawjan Gurung 6af8988403 Add version author tests (#5425) (#5438) 2023-01-21 11:14:35 +05:45
Sawjan Gurung 85d213a0ec [tests-only][full-ci] Added tests for checking version of file uploaded with same mtime twice (#5379) 2023-01-12 11:21:53 +05:45
Saw-jan c59392bc1e copy feature files from core 2023-01-05 09:22:52 +05:45