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

Add new API acceptance test for issue #10882

This commit is contained in:
Deyan Zhekov 2025-04-08 10:22:07 +03:00
parent 674291eb7c
commit ee5d8b73e5

View File

@ -186,3 +186,24 @@ Feature: Space management
When user "Carol" tries to restore a disabled space "Project" owned by user "Alice"
Then the HTTP status code should be "404"
And the user "Alice" should have a space "Project" in the disable state
@issue-10882
Scenario: user gets an email notification when space membership expire
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" shares a space "new-space" with settings:
| shareWith | Brian |
| space | new-space |
| role | viewer |
| permissionsRole | Space Viewer |
| expirationDateTime | 2042-03-25T23:59:59.000Z |
When user "Alice" has expired the membership of user "Brian" from space "new-space"
Then user "Brian" should have received the following email from user "Alice" about the share of project space "new-space"
"""
Hello Brian Murphy,
Your membership of space new-space has expired at %expiry_date_in_mail%
Even though this membership has expired you still might have access through other shares and/or space memberships
"""