-
Notifications
You must be signed in to change notification settings - Fork 203
[tests-only][full-ci] add test for list single sharing permission for a drive #11337
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
Merged
Conversation
This file contains hidden or 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
d0452f4
to
f01b3a2
Compare
35771e8
to
9811825
Compare
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
2 tasks
dc06b91
to
808f65c
Compare
808f65c
to
a2fc304
Compare
4026a52
to
cc1cc8c
Compare
saw-jan
requested changes
May 23, 2025
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
69225a9
to
a23d2fa
Compare
a23d2fa
to
4769c4b
Compare
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSharingNgPermissions/listPermissions.feature
Outdated
Show resolved
Hide resolved
4769c4b
to
8097cfc
Compare
saw-jan
approved these changes
May 23, 2025
8eca8db
to
a6af72c
Compare
amrita-shrestha
requested changes
May 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update description
Description updated. Please let me know if anything is unclear or if you have any suggestions for improvement. |
anon-pradip
reviewed
May 30, 2025
anon-pradip
reviewed
May 30, 2025
a6af72c
to
01fc4e0
Compare
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
01fc4e0
to
45343c6
Compare
|
amrita-shrestha
approved these changes
Jun 3, 2025
ownclouders
pushed a commit
that referenced
this pull request
Jun 3, 2025
[tests-only][full-ci] add test for list single sharing permission for a drive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR has added tests for listing single sharing permission for drive using /drives/{driveID}/root/permissions/{perm-id} api endpoint.
Tests are added for two types of sharing:
/v1beta1/drives/{drive-id}/root/permissions/{invitation-perm-id}
/v1beta1/drives/{drive-id}/root/permissions/{link-perm-id}
As I understand it, these are based on the existing endpoint /v1beta1/drives/{drive-id}/root/permissions, which returns a structure like this:
Response
The endpoint(single sharing permission) essentially filters the list to return only the permission that matches the given sharing perm-id.
Example: Get Single Permission by perm-id
Response for invitation-based sharing(according to the swagger):
Response for link-based sharing(Assuming the behaviours like above):
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: