-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: email notification using CLI command
- Loading branch information
1 parent
d7156bc
commit d955b07
Showing
4 changed files
with
119 additions
and
0 deletions.
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
30 changes: 30 additions & 0 deletions
30
tests/acceptance/features/cliCommands/emailNotification.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,30 @@ | ||
@env-config @email | ||
Feature: get email notification via CLI command | ||
|
||
Background: | ||
Given these users have been created with default attributes: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
|
||
|
||
Scenario Outline: get daily/weekly email notification when someone shares a resource | ||
Given user "Alice" has created folder "FolderToShare" | ||
And user "Alice" has uploaded file with content "some data" to "lorem.txt" | ||
And user "Brian" has switched the email sending interval to "daily" using the settings API | ||
And user "Alice" has sent the following resource share invitation: | ||
| resource | <resource> | | ||
| space | Personal | | ||
| sharee | Brian | | ||
| shareType | user | | ||
| permissionsRole | <permissions-role> | | ||
When the administrator triggers "daily" email notifications using the CLI | ||
Then the command should be successful | ||
And the command output should contain "successfully sent SendEmailsEvent" | ||
Examples: | ||
| permissions-role | resource | | ||
| Viewer | lorem.txt | | ||
| File Editor | lorem.txt | | ||
| Viewer | FolderToShare | | ||
| Editor | FolderToShare | | ||
| Uploader | FolderToShare | |