Commit Graph
17 Commits
Author SHA1 Message Date
Jörn Friedrich Dreyer f1271ef2fe test: drop the blank line padding in updateShareInvitations
The padding kept the scenario line numbers stable but trips the
newline_before_scenario gherlint rule. The three scenarios are the last
ones in the file and nothing refers to their line numbers, so they can
just move up.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-11 15:05:18 +01:00
Jörn Friedrich Dreyer 04ac120dca fix(graph): apply the role allowlist to permission updates
Updating a permission or a space root permission did not check the
roles an administrator enabled with GRAPH_AVAILABLE_ROLES. An invite
with a disabled role was rejected, but the same role could be set by
updating an existing share. We now validate updates against the
allowlist, same as invites.

The three "without enabling it" scenarios now expect a 400. Their
removed lines are padded with blank lines so the line numbers of the
scenarios stay the same.

ported from `owncloud/ocis#12540`. The reva half
(`owncloud/reva#653`) is https://github.com/opencloud-eu/reva/pull/993

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-11 13:32:56 +01:00
Viktor Scharf f3693ef112 api-test: cover additional unified roles in acceptance tests (#3169) 2026-07-27 09:12:38 +02:00
Ralf Haferkamp 44bbc07273 tests: Adjust acceptance test for recent Space sharing changes
The `id` property of the `permissions` on a space root does not
longer have that special `u:<userid>` format any. It now has the
same format as the permission id on "normal" driveItems.
2026-04-23 17:07:00 +02:00
Viktor Scharf 0c45e74785 apiTest-flaky: stnc share before checking 2025-09-24 11:29:53 +02:00
Ralf Haferkamp c22c63d91a tests: Avoid static dates when creating shares
The expirationDate for new shares needs to be in the future. Using
static dates in the tests means we need to update them every now an
then. This adjusts the helpers to allow relative date formats like
"+3 days" and "tomorrow" when creating shares.
2025-07-16 18:14:21 +02:00
Viktor Scharf 9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
pradip 6c5c05aa64 test: check if share creation date is not missing in share invite response 2025-01-06 12:41:28 +05:45
Prajwol Amatya 8c47aa176f added test to update share permissions role to disabled role 2024-12-17 09:57:34 +05:45
Saw-jan bedddc4728 tests: fix tests 2024-12-09 14:52:23 +05:45
Saw-jan 5d42d8ee0f test: remove duplicate steps 2024-12-09 14:52:23 +05:45
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
prashant-gurung899 5475f6c60f add test to check activities after updating share in space context
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-11-27 13:01:58 +05:45
prashant-gurung899 4c828d36f0 add tests for new role space editor withour versions
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-09 17:01:19 +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
Prarup Gurung a0a3447a00 Used expirationDateTime key for graph api (#9278) 2024-05-30 12:51:05 +05:45
Prajwol Amatya 52e7ae9fcb [tests-only][full-ci] divide shareNg test suite into multiple parts (#9158)
* divide shareNg test suite into 2 parts

* update directory name in expected failure file

* separate apisharingNg suite

* separate shareNg test suite to 3 parts

* remove unused context files from test suites
2024-05-16 12:36:09 +05:45