-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from owncloud/demonstrate-issue-287
Add test scenarios to demonstrate issue-287
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...acceptance/features/webUIPublicShareLink/publicShareLinkExpirationPolicyEdgeCases.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,46 @@ | ||
@webUI @insulated @disablePreviews | ||
Feature: enforce public link expiration policies on public links only | ||
|
||
As an administrator | ||
I want to enforce maximum expiration date for public shares | ||
I do not want the settings to affect user or group shares | ||
|
||
Background: | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| user1 | | ||
| user2 | | ||
And user "user1" has created folder "folder-to-share" | ||
And user "user1" has logged in using the webUI | ||
|
||
@issue-287 | ||
Scenario: user tries to create a user share when "days maximum until link expires if password is not set" is enabled | ||
Given the administrator has enabled the days until link expires if password is not set public link password policy | ||
When the user shares folder "folder-to-share" with user "User Two" using the webUI | ||
# Then as "user2" folder "folder-to-share" should exist | ||
Then notifications should be displayed on the webUI with the text | ||
| An expiration date is required. | | ||
And as "user2" folder "folder-to-share" should not exist | ||
|
||
Scenario: user tries to create a user share when "days maximum until link expires if password is set" is enabled | ||
Given the administrator has enabled the days until link expires if password is set public link password policy | ||
When the user shares folder "folder-to-share" with user "User Two" using the webUI | ||
And as "user2" folder "folder-to-share" should exist | ||
|
||
@issue-287 | ||
Scenario: user tries to create a group share when "days maximum until link expires if password is not set" is enabled | ||
Given group "new-group" has been created | ||
And user "user2" has been added to group "new-group" | ||
And the administrator has enabled the days until link expires if password is not set public link password policy | ||
When the user shares folder "folder-to-share" with group "new-group" using the webUI | ||
# Then as "user2" folder "folder-to-share" should exist | ||
Then notifications should be displayed on the webUI with the text | ||
| An expiration date is required. | | ||
And as "user2" folder "folder-to-share" should not exist | ||
|
||
Scenario: user tries to create a group share when "days maximum until link expires if password is set" is enabled | ||
Given group "new-group" has been created | ||
And user "user2" has been added to group "new-group" | ||
And the administrator has enabled the days until link expires if password is set public link password policy | ||
When the user shares folder "folder-to-share" with group "new-group" using the webUI | ||
And as "user2" folder "folder-to-share" should exist |