-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only][full-ci] Add tests for share expiry #10935
Open
amrita-shrestha
wants to merge
2
commits into
master
Choose a base branch
from
add-test-for-share-expiry-notification
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+80
−20
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
tests/acceptance/features/apiNotification/shareExpireNotification.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@notification @email | ||
Feature: Share Expiry Notification | ||
As a user | ||
I want to be notified when share expires | ||
So that I can stay updated about the share | ||
|
||
Background: | ||
Given these users have been created with default attributes: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
|
||
|
||
Scenario: check share expired in-app and mail notifications for Personal space resource | ||
Given using SharingNG | ||
And user "Alice" has uploaded file with content "hello world" to "testfile.txt" | ||
And user "Alice" has sent the following resource share invitation: | ||
| resource | testfile.txt | | ||
| space | Personal | | ||
| sharee | Brian | | ||
| shareType | user | | ||
| permissionsRole | Viewer | | ||
| expirationDateTime | 2025-07-15T14:00:00Z | | ||
When user "Alice" expires the last share of resource "testfile.txt" inside of the space "Personal" | ||
Then the HTTP status code should be "200" | ||
And user "Brian" should get a notification with subject "Membership expired" and message: | ||
| message | | ||
| Access to Space Alice Hansen lost | | ||
And user "Brian" should have "2" emails | ||
amrita-shrestha marked this conversation as resolved.
Show resolved
Hide resolved
|
||
And user "Brian" should have received the following email from user "Alice" | ||
""" | ||
Hello Brian Murphy, | ||
|
||
Your membership of space %displayname% has expired at %expirationDateTime% | ||
|
||
Even though this membership has expired you still might have access through other shares and/or space memberships | ||
""" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the message doesn't seem to align with the action. It should similar to
Access to testfile.txt expired
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you forget our last discussion regarding this current behavior,. I have raise question on bug report but no reply came, so assuming this current behavior, scenario has been written.
Don't forget to ask directly to developer in standup, if you want instant reply 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we should not merge this PR until the expected behavior is confirmed