Skip to content

Commit

Permalink
separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed May 5, 2022
1 parent d544534 commit e708aa8
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 17 deletions.
24 changes: 12 additions & 12 deletions tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingAcceptShares/acceptShares.feature:228](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L228)

### [Share not created with default permissions](https://github.com/owncloud/ocis/issues/1277)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:60](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L60)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:61](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L61)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:62](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L62)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:63](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L63)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:64](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L64)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:65](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L65)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:90](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L90)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:91](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L91)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:92](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L92)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:93](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L93)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:94](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L94)
- [webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature:95](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature#L95)
- [webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature:54](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature#L54)
- [webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature:55](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature#L55)
- [webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature:56](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature#L56)
Expand All @@ -222,12 +222,12 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingInternalGroups/shareWithGroups.feature:74](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature#L74)
- [webUISharingInternalGroups/shareWithGroups.feature:72](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature#L72)
- [webUISharingInternalGroups/shareWithGroups.feature:73](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature#L73)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:53](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L53)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:54](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L54)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:55](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L55)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:56](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L56)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:57](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L57)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:58](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L58)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:84](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L84)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:85](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L85)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:86](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L86)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:87](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L87)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L88)
- [webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:89](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature#L89)
- [webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature:48](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature#L48)
- [webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature:49](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature#L49)
- [webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature:50](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature#L50)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Feature: Sharing folders with multiple internal users using advanced permissions
| Alice |
| Brian |
| Carol |
And user "Alice" has created folder "/simple-folder" in the server
And user "Alice" has logged in using the webUI

@issue-ocis-1922 @skipOnOCIS @issue-ocis-3613
@skipOnOCIS @issue-ocis-3613
Scenario Outline: share a folder with multiple users using role as advanced permissions role and different extra permissions
Given user "Alice" has created folder "/simple-folder" in the server
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 selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
Expand Down Expand Up @@ -50,6 +50,37 @@ Feature: Sharing folders with multiple internal users using advanced permissions
| Custom permissions | Custom permissions | delete, update | delete, update | read, delete, update |
| Custom permissions | Custom permissions | update, create | update, create | read, update, create |
| Custom permissions | Custom permissions | delete, create | delete, create | read, delete, create |

@issue-ocis-1277
Scenario Outline: share a folder with multiple users using role as advanced permissions role and different extra permissions (share)
When the user opens the share dialog for folder "simple-folder" using the webUI
And the user selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
| Brian Murphy | user |
| Carol King | user |
And the user shares with the selected collaborators
And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server
And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server
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 in the server:
| 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 in the server:
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
Examples:
| role | displayed-role | extra-permissions | displayed-permissions | actual-permissions |
| Custom permissions | Custom permissions | share, delete | share, delete | read, share, delete |
| Custom permissions | Custom permissions | share, update | share, update | read, update, share |
| Custom permissions | Custom permissions | share, create | share, create | read, share, create |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Feature: Sharing folders with internal groups with role as advanced permissions
| grp2 |
And user "Brian" has been added to group "grp1" in the server
And user "Carol" has been added to group "grp2" in the server
And user "Alice" has created folder "simple-folder" in the server
And user "Alice" has logged in using the webUI

@skipOnOCIS @issue-ocis-3613
Scenario Outline: share a folder with multiple groups with role as advanced permissions and different extra permissions
Given user "Alice" has created folder "simple-folder" in the server
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 selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
Expand Down Expand Up @@ -56,6 +56,37 @@ Feature: Sharing folders with internal groups with role as advanced permissions
| Custom permissions | Custom permissions | delete, update | delete, update | read, delete, update |
| Custom permissions | Custom permissions | delete, create | delete, create | read, delete, create |
| Custom permissions | Custom permissions | update, create | update, create | read, update, create |

@issue-ocis-1277
Scenario Outline: share a folder with multiple groups with role as advanced permissions and different extra permissions (share)
When the user opens the share dialog for folder "simple-folder" using the webUI
And the user selects the following collaborators for the share as "<role>" with "<extra-permissions>" permissions:
| collaborator | type |
| grp1 | group |
| grp2 | group |
And the user shares with the selected collaborators
And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server
And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server
Then custom permissions "<displayed-permissions>" should be set for group "grp2" for folder "simple-folder" on the webUI
And custom permissions "<displayed-permissions>" should be set for group "grp1" for folder "simple-folder" on the webUI
And group "grp2" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And group "grp1" 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 in the server:
| field | value |
| uid_owner | Alice |
| share_with | grp1 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
And user "Carol" should have received a share with these details in the server:
| field | value |
| uid_owner | Alice |
| share_with | grp2 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
Examples:
| role | displayed-role | extra-permissions | displayed-permissions | actual-permissions |
| Custom permissions | Custom permissions | share, delete | share, delete | read, share, delete |
| Custom permissions | Custom permissions | share, update | share, update | read, update, share |
| Custom permissions | Custom permissions | share, create | share, create | read, share, create |
Expand Down

0 comments on commit e708aa8

Please sign in to comment.