Merge pull request #11056 from owncloud/list-shares

[tests-only][full-ci] added test for federated user to list share shared with Editor role
This commit is contained in:
Prajwol Amatya authored and GitHub committed 2025-03-04 11:29:13 +05:45
commit 444f2cfa25
2 files changed
+40 -23

No files matched your search

@@ -329,8 +329,8 @@ The expected failures in this file are from features in the owncloud/ocis repo.
- [apiOcm/acceptInvitation.feature:148](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/acceptInvitation.feature#L148)
#### [[OCM] Hide & Enable Sync fail with received federated shares](https://github.com/owncloud/ocis/issues/10719)
- [apiOcm/share.feature:1190](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/share.feature#L1190)
- [apiOcm/share.feature:1214](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/share.feature#L1214)
- [apiOcm/share.feature:1204](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/share.feature#L1204)
- [apiOcm/share.feature:1228](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/share.feature#L1228)
#### [[OCM] federated user trying to download file shared with permissions role Secure Viewer returns 500 status code](https://github.com/owncloud/ocis/issues/10822)
- [apiOcm/enableDisablePermissionsRole.feature:18](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/enableDisablePermissionsRole.feature#L18)
@@ -339,5 +339,8 @@ The expected failures in this file are from features in the owncloud/ocis repo.
#### [Delete user containing + in username returns 404 but user gets deleted](https://github.com/owncloud/ocis/issues/11027)
- [apiGraphUserGroup/deleteUser.feature:28](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraphUserGroup/deleteUser.feature#L28)
#### [[OCM] roles id not available on sharedWithMe response when listing shares shared with editor role](https://github.com/owncloud/ocis/issues/11054)
- [apiOcm/share.feature:375](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/share.feature#L375)
Note: always have an empty line at the end of this file.
The bash script that processes this file requires that the last line has a newline on the end.
+35 -21
View File
@@ -11,16 +11,16 @@ Feature: an user shares resources using ScienceMesh application
And user "Brian" has been created with default attributes
And "Brian" has accepted invitation
@issue-9534
Scenario: local user shares a folder to federation user
@issue-9534 @issue-11054
Scenario Outline: local user shares a folder to federation user
Given using server "LOCAL"
And user "Alice" has created folder "folderToShare"
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
| resource | folderToShare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
| resource | folderToShare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "200"
When using server "REMOTE"
And user "Brian" lists the shares shared with him without retry using the Graph API
@@ -181,17 +181,22 @@ Feature: an user shares resources using ScienceMesh application
}
}
"""
Examples:
| permissions-role |
| Viewer |
| Editor |
| Uploader |
@issue-9534
Scenario: local user shares a file to federation user
@issue-9534 @issue-11054
Scenario Outline: local user shares a file to federation user
Given using server "LOCAL"
And user "Alice" has uploaded file with content "ocm test" to "textfile.txt"
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "200"
When using server "REMOTE"
And user "Brian" lists the shares shared with him without retry using the Graph API
@@ -364,19 +369,23 @@ Feature: an user shares resources using ScienceMesh application
}
}
"""
Examples:
| permissions-role |
| Viewer |
| File Editor |
Scenario: local user shares a folder from project space to federation user
@issue-11054
Scenario Outline: local user shares a folder from project space to federation user
Given using server "LOCAL"
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "projectSpace" with the default quota using the Graph API
And user "Alice" has created a folder "folderToShare" in space "projectSpace"
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
| resource | folderToShare |
| space | projectSpace |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
| resource | folderToShare |
| space | projectSpace |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "200"
When using server "REMOTE"
And user "Brian" lists the shares shared with him without retry using the Graph API
@@ -537,6 +546,11 @@ Feature: an user shares resources using ScienceMesh application
}
}
"""
Examples:
| permissions-role |
| Viewer |
| Editor |
| Uploader |
@issue-10051
Scenario Outline: try to add federated user as a member of a project space (permissions endpoint)