Skip to content
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] Update expected to failure file #4792

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

70 changes: 6 additions & 64 deletions tests/acceptance/features/webUIResharing/reshareUsers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Resharing shared files with different permissions
| Brian |
| Carol |


@issue-ocis-1743
Scenario: Reshare a folder without share permissions using API and check if it is listed on the collaborators list for original owner
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand All @@ -24,7 +24,7 @@ Feature: Resharing shared files with different permissions
Then user "Carol King" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI
And no custom permissions should be set for collaborator "Carol King" for folder "simple-folder" on the webUI


@issue-ocis-1743
Scenario: Reshare a folder without share permissions using API and check if it is listed on the collaborators list for resharer
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand All @@ -36,7 +36,7 @@ Feature: Resharing shared files with different permissions
Then user "Carol King" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI
And no custom permissions should be set for collaborator "Carol King" for folder "simple-folder" on the webUI

@issue-product-270
@issue-product-270 @issue-ocis-1743
Scenario: Reshare a folder without share permissions using API and check if the receiver can reshare
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand All @@ -46,7 +46,7 @@ Feature: Resharing shared files with different permissions
And the user opens folder "Shares" using the webUI
Then the user should not be able to share folder "simple-folder" using the webUI


@issue-ocis-1743
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for resharer
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "<permissions>" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand Down Expand Up @@ -97,7 +97,7 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | delete, create, update | | read, delete, update, create |

@issue-4193
@issue-4193 @issue-ocis-1743
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for original owner
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "<permissions>" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand Down Expand Up @@ -132,42 +132,6 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update, share | share, update | read, update, share |
| Advanced permissions | Editor | delete, share, create, update | , | read, share, delete, update, create |

@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for original owner
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "<permissions>" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
And user "Alice" has logged in using the webUI
And the user opens folder "Shares" using the webUI
When the user shares folder "simple-folder" with user "Carol King" as "<role>" with permissions "<collaborators-permissions>" using the webUI
And user "Carol" accepts the share "simple-folder" offered by user "Alice" using the sharing API
And the user re-logs in as "Brian" using the webUI
Then user "Carol King" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And custom permissions "<displayed-permissions>" should be set for user "Carol King" for folder "simple-folder" on the webUI
And user "Alice Hansen" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And custom permissions "<displayed-permissions>" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI
And user "Carol" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /simple-folder |
| item_type | folder |
| permissions | <permissions> |
And user "Alice" should have received a share with these details:
| field | value |
| uid_owner | Brian |
| share_with | Alice |
| file_target | /simple-folder |
| item_type | folder |
| permissions | <permissions> |
Examples:
| role | displayed-role | collaborators-permissions | displayed-permissions | permissions |
| Viewer | Viewer | , | , | read |
| Editor | Editor | , | , | all |
| Advanced permissions | Advanced permissions | create | create | read, create |
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | delete, create, update | , | read, delete, update, create |

@issue-4193
Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for original sharer
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions
Expand Down Expand Up @@ -285,29 +249,7 @@ Feature: Resharing shared files with different permissions
| simple-folder |
| lorem.txt |


Scenario: User is allowed to reshare a file/folder with the equivalent received permissions, and collaborators should not be listed for the receiver
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, delete" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
And user "Alice" has logged in using the webUI
And the user opens folder "Shares" using the webUI
When the user shares folder "simple-folder" with user "Carol King" as "Advanced permissions" with permissions "share, delete" using the webUI
And user "Carol" accepts the share "simple-folder" offered by user "Alice" using the sharing API
And the user re-logs in as "Carol" using the webUI
And the user opens folder "Shares" using the webUI
And the user opens the share dialog for folder "simple-folder" using the webUI
Then the current collaborators list should have order "Brian Murphy,Carol King"
And user "Brian Murphy" should be listed as "Owner" reshared through "Alice Hansen" in the collaborators list on the webUI
And user "Carol" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | share, delete, read |

@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
@issue-ocis-1743
Scenario: User is allowed to reshare a file/folder with the equivalent received permissions, and collaborators should not be listed for the receiver
Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, delete" permissions
And user "Alice" has accepted the share "simple-folder" offered by user "Brian"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Sharing files with multiple internal users with different permissions
| Alice |
| Brian |

@issue-ocis-717
@issue-ocis-1743
Scenario Outline: share a file with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
Expand All @@ -24,9 +24,9 @@ Feature: Sharing files with multiple internal users with different permissions
And the user selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
| Regular User | user |
| Brian Murphy | user |
| Brian Murphy | user |
| Carol King | user |
| David Lopez | user |
| David Lopez | user |
And the user removes "David Lopez" as a collaborator from the share
And the user removes "Regular User" as a collaborator from the share
And the user shares with the selected collaborators
Expand Down Expand Up @@ -62,54 +62,3 @@ Feature: Sharing files with multiple internal users with different permissions
| Advanced permissions | Viewer | share | , | read, share |
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | share, update | , | read, update, share |

@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a file with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
| user0 |
| Carol |
| David |
And user "Alice" has logged in using the webUI
When the user opens the share dialog for file "lorem.txt" using the webUI
And the user opens the share creation dialog in the webUI
And the user selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
| Regular User | user |
| Brian Murphy | user |
| Carol King | user |
| David Lopez | user |
And the user removes "David Lopez" as a collaborator from the share
And the user removes "Regular User" as a collaborator from the share
And the user shares with the selected collaborators
And user "Brian" accepts the share "lorem.txt" offered by user "Alice" using the sharing API
And user "Carol" accepts the share "lorem.txt" offered by user "Alice" using the sharing API
Then custom permissions "<displayed-permissions>" should be set for user "Brian Murphy" for file "lorem.txt" on the webUI
And custom permissions "<displayed-permissions>" should be set for user "Carol King" for file "lorem.txt" on the webUI
And user "Brian Murphy" should be listed as "<displayed-role>" in the collaborators list for file "lorem.txt" on the webUI
And user "Carol King" should be listed as "<displayed-role>" in the collaborators list for file "lorem.txt" on the webUI
And user "Brian" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Brian |
| file_target | /Shares/lorem.txt |
| item_type | file |
| permissions | <actual-permissions> |
And user "Carol" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /Shares/lorem.txt |
| item_type | file |
| permissions | <actual-permissions> |
But user "Regular User" should not be listed in the collaborators list on the webUI
And as "user0" file "/Shares/lorem.txt" should not exist
And user "David Lopez" should not be listed in the collaborators list on the webUI
And as "David" file "/Shares/lorem.txt" should not exist
Examples:
| role | displayed-role | extra-permissions | displayed-permissions | actual-permissions |
| Viewer | Viewer | , | , | read |
| Editor | Editor | , | , | read, update |
| Advanced permissions | Viewer | , | , | read |
| Advanced permissions | Editor | update | , | read, update |
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Sharing folders with multiple internal users using advanced permissions
| Alice |
| Brian |


@issue-ocis-1743
Scenario Outline: share a folder with multiple users using role as advanced permissions role and different extra permissions
Given these users have been created with default attributes:
| username |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@issue-ocis-717

Feature: Sharing folders with multiple internal users with different permissions
As a user
I want to set different permissions on shared folders with other users
Expand All @@ -12,7 +12,7 @@ Feature: Sharing folders with multiple internal users with different permissions
| Alice |
| Brian |


@issue-ocis-1743
Scenario Outline: share a folder with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
Expand Down Expand Up @@ -63,58 +63,3 @@ Feature: Sharing folders with multiple internal users with different permissions
| Advanced permissions | Viewer | share | , | read, share |
| Advanced permissions | Advanced permissions | delete, update, create | delete, update, create | read, delete, update, create |
| Advanced permissions | Editor | share, delete, update, create | , | all |

@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a folder with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
| user0 |
| Carol |
| David |
And user "Alice" has logged in using the webUI
When the user opens the share dialog for folder "simple-folder" using the webUI
And the user opens the share creation dialog in the webUI
And the user selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
| Regular User | user |
| Brian Murphy | user |
| Carol King | user |
| David Lopez | user |
And the user removes "David Lopez" as a collaborator from the share
And the user removes "Regular User" as a collaborator from the share
And the user shares with the selected collaborators
And user "Brian" accepts the share "simple-folder" offered by user "Alice" using the sharing API
And user "Carol" accepts the share "simple-folder" offered by user "Alice" using the sharing API
Then custom permissions "<displayed-permissions>" should be set for user "Brian Murphy" for folder "simple-folder" on the webUI
And custom permissions "<displayed-permissions>" should be set for user "Carol King" for folder "simple-folder" on the webUI
And user "Brian Murphy" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And user "Carol King" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And user "Brian" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Brian |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
And user "Carol" should have received a share with these details:
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
But user "Regular User" should not be listed in the collaborators list on the webUI
And as "user0" folder "simple-folder (2)" should not exist
And user "David Lopez" should not be listed in the collaborators list on the webUI
And as "David" folder "simple-folder (2)" should not exist
Examples:
| role | displayed-role | extra-permissions | displayed-permissions | actual-permissions |
# | Viewer | Viewer | share | share | read, share |
| Viewer | Viewer | , | , | read |
# | Editor | Editor | share | share | all |
| Editor | Editor | , | , | read, update, delete, create |
| Advanced permissions | Viewer | , | , | read |
# | Advanced permissions | Viewer | share | share | read, share |
| Advanced permissions | Editor | delete, update, create | , | read, delete, update, create |
# | Advanced permissions | Editor | share, delete, update, create | share | all |
Loading