1
0
mirror of https://github.com/owncloud/ocis.git synced 2025-04-18 23:44:07 +03:00

add test to check in-app notification for share removed event OCM

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899 2025-04-02 12:51:34 +05:45
parent e9158c9496
commit ce74968901
No known key found for this signature in database
GPG Key ID: DEA6868D99D4D475

View File

@ -231,3 +231,27 @@ Feature: ocm notifications
And user "Brian" should get a notification with subject "Resource shared" and message:
| message |
| Alice Hansen shared textfile.txt with you |
@issue-11042
Scenario: federation user gets an in-app notification for share removed from local user
Given using server "REMOTE"
And user "Brian" has been created with default attributes
And "Brian" has created the federation share invitation
And using server "LOCAL"
And user "Alice" has uploaded file with content "ocm test" to "textfile.txt"
And "Alice" has accepted invitation
And user "Alice" has sent the following resource share invitation to federated user:
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
When user "Alice" removes the access of user "Brian" from resource "textfile.txt" of space "Personal" using the Graph API
Then the HTTP status code should be "204"
And using server "REMOTE"
And user "Brian" should get a notification with subject "Resource shared" and message:
| message |
| Alice Hansen shared textfile.txt with you |
And user "Brian" should get a notification with subject "Resource unshared" and message:
| message |
| Alice Hansen unshared textfile.txt with you |