From a34dbf89fdfe16caa81b2da6b5b24afbde9536b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 18 Nov 2026 18:07:33 +0100 Subject: [PATCH] test(ocm): adjust the ocm scenarios to the reva fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A federated editor share of a folder now carries the permissions of the Editor role, so the graph API returns a role for it instead of a list of permission actions. Changing the role of a federated share now notifies the remote, so the remote user can write to the file after the sharer upgraded the share to File Editor. Accepting an expired invitation returns the actual reason, "token not valid", instead of always claiming the token expired. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer --- .../features/apiOcm/acceptInvitation.feature | 2 +- tests/acceptance/features/apiOcm/share.feature | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/acceptance/features/apiOcm/acceptInvitation.feature b/tests/acceptance/features/apiOcm/acceptInvitation.feature index 51a71bfc29..d5c6c05a6a 100755 --- a/tests/acceptance/features/apiOcm/acceptInvitation.feature +++ b/tests/acceptance/features/apiOcm/acceptInvitation.feature @@ -114,7 +114,7 @@ Feature: accepting invitation "const": "INVALID_PARAMETER" }, "message": { - "const": "token has expired" + "const": "token not valid" } } } diff --git a/tests/acceptance/features/apiOcm/share.feature b/tests/acceptance/features/apiOcm/share.feature index dc034839b1..f1db56b7aa 100755 --- a/tests/acceptance/features/apiOcm/share.feature +++ b/tests/acceptance/features/apiOcm/share.feature @@ -1061,7 +1061,11 @@ Feature: an user shares resources using ScienceMesh application "maxItems": 1, "items": { "type": "object", - "required": ["@libre.graph.permissions.actions"] + "properties": { + "@libre.graph.permissions.actions": { + "type": "null" + } + } } } } @@ -1115,7 +1119,7 @@ Feature: an user shares resources using ScienceMesh application """ @issue-9926 - Scenario: federated user tries to update a shared file after local user updates role + Scenario: federated user updates a shared file after sharer has updated the role Given using spaces DAV path And using server "LOCAL" And "Alice" has created the federation share invitation @@ -1136,9 +1140,9 @@ Feature: an user shares resources using ScienceMesh application | resource | textfile.txt | And using server "REMOTE" When user "Brian" updates the content of federated share "textfile.txt" with "this is a new content" using the WebDAV API - Then the HTTP status code should be "403" + Then the HTTP status code should be "204" And using server "LOCAL" - And the content of file "textfile.txt" for user "Alice" should be "ocm test" + And the content of file "textfile.txt" for user "Alice" should be "this is a new content" @issue-10689 Scenario: federation user lists all the spaces