From ee91afdf275e9fc2fed65d70e1303e3c46a6715d Mon Sep 17 00:00:00 2001 From: prashant-gurung899 Date: Tue, 10 Dec 2024 12:19:14 +0545 Subject: [PATCH] add test to update shared file after updating role Signed-off-by: prashant-gurung899 --- .../acceptance/features/apiOcm/share.feature | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/acceptance/features/apiOcm/share.feature b/tests/acceptance/features/apiOcm/share.feature index 9fd1e0db627..9ef7aea94ef 100755 --- a/tests/acceptance/features/apiOcm/share.feature +++ b/tests/acceptance/features/apiOcm/share.feature @@ -1229,3 +1229,29 @@ Feature: an user shares resources using ScienceMesh application } } """ + + @issue-9926 + Scenario: federated user tries to update a shared file after local user updates role + Given using spaces DAV path + And using server "LOCAL" + And "Alice" has created the federation share invitation + And using server "REMOTE" + And "Brian" has accepted invitation + And using server "LOCAL" + And user "Alice" has uploaded file with content "ocm test" to "/textfile.txt" + And user "Alice" has sent the following resource share invitation to federated user: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Alice" has updated the last resource share with the following properties: + | permissionsRole | File Editor | + | expirationDateTime | 2200-07-15T14:00:00.000Z | + | space | Personal | + | 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 "500" + And using server "LOCAL" + And the content of file "textfile.txt" for user "Alice" should be "ocm test"