Skip to content

Commit

Permalink
share with custom perm (#10499)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored and saw-jan committed Mar 5, 2024
1 parent b7ac6ae commit a810b07
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 403 deletions.
14 changes: 0 additions & 14 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ config = {
],
"oCISSharingPerm1": [
"webUISharingPermissionsUsers",
"webUISharingFolderPermissionsGroups",
],
"oCISSharingPerm2": [
"webUISharingFilePermissionsGroups",
"webUISharingFilePermissionMultipleUsers",
"webUISharingFolderPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionsGroups",
],
"oCISSharingPublic1": [
"webUISharingPublicBasic",
Expand Down Expand Up @@ -197,12 +189,6 @@ basicTestSuites = [
"webUIRenameFolders",
"webUISharingAcceptShares",
"webUISharingAutocompletion",
"webUISharingFilePermissionMultipleUsers",
"webUISharingFilePermissionsGroups",
"webUISharingFolderAdvancedPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionsGroups",
"webUISharingFolderPermissionMultipleUsers",
"webUISharingFolderPermissionsGroups",
"webUISharingInternalGroups",
"webUISharingInternalGroupsEdgeCases",
"webUISharingInternalGroupsSharingIndicator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Other free text and markdown formatting can be used elsewhere in the document if

### [PROPFIND to sub-folder of a shared resources with same name gives 404](https://github.com/owncloud/ocis/issues/3859)

- [webUISharingAcceptShares/acceptShares.feature:73](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L73)
- [webUISharingAcceptShares/acceptShares.feature:16](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L16)
Original file line number Diff line number Diff line change
Expand Up @@ -12,63 +12,6 @@ Feature: accept/decline shares coming from internal users
And user "Brian" has logged in using the webUI


Scenario: User receives files when auto accept share is disabled - oCIS behavior
Given user "Alice" has created file "toshare.txt" in the server
And user "Alice" has uploaded file with content "test" to "toshare.txt" in the server
And user "Alice" has shared file "toshare.txt" with user "Brian" in the server
When the user browses to the shared-with-me page
Then file "toshare.txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
When the user browses to the files page
Then file "toshare.txt" should not be listed on the webUI
And folder "Shares" should not be listed on the webUI


Scenario: receive shares with same name from different users
Given user "Carol" has been created with default attributes and without skeleton files in the server
And user "Carol" has created file "lorem.txt" in the server
And user "Alice" has created file "lorem.txt" in the server
And user "Carol" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
When the user browses to the shared-with-me page
Then file "lorem (1).txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
And file "lorem.txt" shared by "Carol King" should be in "Accepted" state on the webUI

@ocisSmokeTest
Scenario: decline an offered (pending) share
Given user "Alice" has created file "toshare.txt" in the server
And user "Alice" has created file "anotherfile.txt" in the server
And user "Alice" has uploaded file with content "test" to "toshare.txt" in the server
And user "Alice" has uploaded file with content "test" to "anotherfile.txt" in the server
And user "Alice" has shared file "toshare.txt" with user "Brian" in the server
And user "Alice" has shared file "anotherfile.txt" with user "Brian" in the server
When the user browses to the shared-with-me page in accepted shares view
And the user declines share "toshare.txt" offered by user "Alice Hansen" using the webUI
And the user browses to the shared-with-me page in declined shares view
Then file "toshare.txt" shared by "Alice Hansen" should be in "Declined" state on the webUI
And file "anotherfile.txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
When the user browses to the files page
Then file "toshare.txt" should not be listed on the webUI
And file "anotherfile.txt" should not be listed on the webUI

@issue-3101 @issue-4102
Scenario: Decline multiple accepted shares at once from shared with me page
Given user "Alice" has created file "lorem.txt" in the server
And user "Alice" has created file "data.zip" in the server
And user "Alice" has created folder "simple-folder" in the server
And user "Alice" has shared folder "simple-folder" with user "Brian" in the server
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared file "data.zip" with user "Brian" in the server
When the user browses to the shared-with-me page in accepted shares view
And the user batch declines these shares using the webUI
| name |
| data.zip |
| lorem.txt |
| simple-folder |
And the user browses to the shared-with-me page in declined shares view
Then file "data.zip" shared by "Alice Hansen" should be in "Declined" state on the webUI
And file "lorem.txt" shared by "Alice Hansen" should be in "Declined" state on the webUI
And folder "simple-folder" shared by "Alice Hansen" should be in "Declined" state on the webUI

@issue-3859
Scenario: receive shares with same name from different users, accept one by one
Given user "Carol" has been created with default attributes and without skeleton files in the server
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a810b07

Please sign in to comment.