-
Notifications
You must be signed in to change notification settings - Fork 196
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][full-ci] added test to list shares after disabling Editor role #11057
base: master
Are you sure you want to change the base?
Conversation
7ff2ffb
to
80b4198
Compare
tests/acceptance/features/apiSharingNg1/enableDisablePermissionsRole.feature
Outdated
Show resolved
Hide resolved
80b4198
to
6b94942
Compare
@@ -715,3 +715,589 @@ Feature: enable disable permissions role | |||
| Space Viewer | | a8d5fe5e-96e3-418d-825b-534dbdf22b99 | | |||
| Space Editor | DNVCK | 58c63c02-1d89-4572-916a-870abc5a1b7d | | |||
| Manager | RDNVCKZP | 312c0871-5ef7-4b3a-85b6-0e4074c64049 | | |||
|
|||
|
|||
Scenario: users list the folder shares shared with Editor role after the role is disabled (Personal Space) |
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.
What happens when role get disabled before sharing. Can we still share resource. Did we already cover such cases
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.
We get the following response
{
"error": {
"code": "invalidRequest",
"innererror": {
"date": "2025-02-27T05:42:33Z",
"request-id": "<request-id>"
},
"message": "Key: 'DriveItemInvite.Roles' Error:Field validation for 'Roles' failed on the 'available_role' tag"
}
}
We don't have test coverage for this case. I will add this case on a separate PR. 👍
tests/acceptance/features/apiSharingNg1/enableDisablePermissionsRole.feature
Outdated
Show resolved
Hide resolved
6b94942
to
fb532a8
Compare
And the administrator has disabled the permissions role "Editor" | ||
When user "Alice" lists the shares shared by her using the Graph API | ||
Then the HTTP status code should be "200" | ||
And the JSON data of the response should contain resource "folderToShare" with the following data: |
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.
minimize json response
fb532a8
to
1d5aaea
Compare
|
Description
This PR adds the test to share resource with Editor role, disabling the Editor role and users listing the shares.
Related Issue
Types of changes
Checklist: