Commit Graph
166 Commits
Author SHA1 Message Date
v.scharf 81a71f4eb1 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
2026-11-27 14:31:23 +01:00
Dominik Schmidt 11449b5943 docs(graph): frame colon paths as "encode segments" instead of a raw-colon edge case
Per review discussion: don't document accidental behavior. The contract is
simply "percent-encode each path segment, as MS Graph requires; encode ':'
as %3A" - OpenCloud allows ':' in names (OneDrive forbids it), so it's one
more character in the mandatory encode set, not a special case.

The parser is unchanged (split on ":/", decode once). This only rewrites the
docs (code comment, acceptance feature, PR description) to state the encode
contract, and drops the tests that relied on a raw, unencoded ':' in a file
name - keeping the "%3A" test that reflects the actual contract.
2026-07-01 17:44:31 +02:00
Dominik Schmidt b6a4a66aef refactor(graph): split colon paths on ":/" so colons in names work
Review feedback: split the anchor/path and path/suffix on the structural
delimiter ":/" instead of a bare ":". Since the path and suffix always
start with "/", ":/" is the real delimiter, and a ":" *inside* a file or
directory name (which OpenCloud allows but MS Graph/OneDrive forbid) is
kept as part of the path instead of being mistaken for a separator.

A ":" sitting at a segment boundary (e.g. a name ending in ":") stays
ambiguous and must be percent-encoded as "%3A": the split works on the
literal ":/", so "%3A" is never a delimiter and decodes back to ":". This
is now documented in the code and the acceptance feature.

Tests: colon inside a name (with and without a suffix), the Stat path
carrying the colon, and the "%3A" boundary escape.
2026-07-01 17:44:31 +02:00
Dominik Schmidt 3b42c6250d test(graph): acceptance tests for MS Graph colon-syntax path lookup
Cover the rewrite shapes the middleware handles end-to-end against a
real OpenCloud server: root-anchored, item-anchored, deep paths,
trailing colon, and the "/<path>:/<suffix>" sub-route form. Also
assert that NOT_FOUND and PERMISSION_DENIED both collapse to 404.

The /permissions sub-route is registered only at /v1beta1, and the
v1beta1 GetDriveItem handler is share-jail-only, so the v1beta1
mount of the middleware is exercised through the permissions
scenario, since there is no other v1beta1 endpoint that works for
regular personal-drive items.
2026-07-01 17:44:31 +02:00
Viktor Scharf 627f9a742e api-tests: search for favorites (#2487) 2026-03-18 11:10:09 +01:00
Viktor Scharf e161069317 favorites tests (#2474) 2026-03-16 14:49:17 +01:00
Viktor Scharf 9b62a97857 [full-ci] use graph api in the enforcePasswordPublicLink.feature (#2050)
* use graph api in the enforcePasswordPublicLink.feature

* delete from expected failures file
2025-12-18 14:05:52 +01:00
Viktor Scharf 25246782b2 [full-ci] Enhance getSpaceByName: check local cache before Graph API calls (#1574)
* Enhance getSpaceByName: check local cache before Graph API calls

* Update API endpoint for regular user drives
2025-09-30 13:08:21 +02:00
Viktor Scharf 723340dba6 [full-ci] getting personal space by userId instead of userName (#1553)
* getting personal space by userId instead of userName

* delete geting userId via api call

* add new created user id to user list

* fix after review
2025-09-26 10:51:41 +02:00
Alex 38169e60ae fix: show special roles at the end of the list (#806) 2025-05-10 11:23:01 +02:00
prashant-gurung899 24e9aacfdf run more local api tests in CI
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-03-17 14:25:06 +05:45
Viktor Scharf 0db2145cef fix gherkin lint 2025-03-10 15:10:32 +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
prashant-gurung899 11b5e8ccbc add test to check settings api response
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-01-09 09:52:39 +05:45
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 f31f92a028 update expected failure file 2024-11-19 09:07:45 +05:45
Prajwol Amatya 33a99d6de3 extend webdav tests for old, new and spaces path 2024-11-19 09:07:45 +05:45
Niraj Acharya a780da88d1 running secure viewer role with ocis wrapper instead of running ocis with GRAPH_AVAILABLE_ROLES 2024-10-25 11:55:50 +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
Michael Barz 2c9dab3e7c tests: adapt test expectations 2024-09-13 14:43:13 +02:00
prashant-gurung899 390114f7d6 add test to check activity after language translation
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-08-21 14:43:47 +05:45
Salipa-Gurung 246c4223cd add test to check activities of a folder 2024-08-14 17:38:23 +05:45
Sawjan Gurung 459f1692a1 Merge pull request #9743 from owncloud/test-activities-api-rename
[tests-only] [full-ci] Test for resource(file|folder) rename activity
2024-08-14 09:54:07 +05:45
Jörn Friedrich Dreyer ad62bb1817 Merge pull request #9765 from owncloud/federated-user-roles
allow querying federated sharing roles
2024-08-13 16:49:48 +02:00
Jörn Friedrich Dreyer 99c6b6648e no need to introduce dedicated roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-13 16:10:19 +02:00
Salipa-Gurung 6fb5c228db added step for checking folder move activity 2024-08-13 17:18:40 +05:45
Salipa-Gurung dbb358b7fb added step for checking folder upload activity 2024-08-13 17:18:40 +05:45
Salipa-Gurung 317bb6cc2f refactor scenario for deletion activity 2024-08-13 17:18:39 +05:45
Salipa-Gurung 571625cb17 add test to check rename activity of file and folder 2024-08-13 17:18:32 +05:45
Salipa-Gurung 6c4c8bdffa refactor test steps 2024-08-13 13:13:58 +05:45
Salipa-Gurung 8f00e9cb60 add test to check move activity of file 2024-08-13 13:10:49 +05:45
Jörn Friedrich Dreyer 966b4e1422 allow querying federated sharing roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-12 11:29:39 +02:00
Salipa-Gurung a5f861f99e add issue tag 2024-08-12 13:04:26 +05:45
Salipa-Gurung b8665e257d add test for folder deletion activity 2024-08-12 13:04:25 +05:45
Salipa-Gurung e96bac1e25 add test for file deletion activity 2024-08-12 13:04:25 +05:45
Salipa-Gurung 2b5144a97d fix indentation 2024-08-12 13:04:24 +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
Salipa-Gurung 065c4fa027 add test coverage for activities api for a file 2024-07-25 14:51:18 +05:45
pradip 7b8b4faf05 test: add test coverage for roleMangement endpoints 2024-07-23 12:46:16 +05:45
Saw-jan dd8a3eb3d2 tests: add test cases for non-admin actions to admin resources 2024-07-18 17:43:16 +05:45
Saw-jan 244f2bc937 test: updated test expectation 2024-07-18 10:08:15 +05:45
prashant-gurung899 8821017a77 lint the gherkin feature files
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-12 10:13:01 +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
Prarup Gurung 68f03f2f5e Addressed reviews 2024-05-03 09:52:29 +05:45
Prarup Gurung 7423fa3a4b Use sharingNG for sharing in given step, refactored accordingly 2024-05-03 09:52:29 +05:45
Viktor ScharfandMichael Barz 79c74711c4 [full-ci] Delete resharing tests (#8704)
* feat: disable resharing by default

delete re-sharing tests

* fix tests

---------

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2024-03-27 10:30:25 +01:00
Prarup Gurung 3055d5912a Used kebab case for example table header name 2024-03-19 10:05:49 +05:45
Sawjan Gurung 3cea035d6d [tests-only] use new json schema assertion lib that supports latest schema drafts (#8503)
* test(api): use new json schema assertion lib that supports latest schema drafts

* test(api): fix json schema

* test(api): fix method call

* test(api): update expected failure lines

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): make json array validation strict

* test(api): fix php code style

* test(api): update expected failure lines
2024-02-23 16:24:22 +05:45