test(ocm): adjust the ocm scenarios to the reva fixes

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 <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer committed 2026-11-19 13:16:11 +01:00
1 parent 4f093f73f6
commit a34dbf89fd
2 files changed
+9 -5

No files matched your search

@@ -114,7 +114,7 @@ Feature: accepting invitation
"const": "INVALID_PARAMETER"
},
"message": {
"const": "token has expired"
"const": "token not valid"
}
}
}
@@ -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