Skip to content
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 reshare a resource to other users with higher roles #8147

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

PrajwolAmatya
Copy link
Contributor

@PrajwolAmatya PrajwolAmatya commented Jan 8, 2024

Description

Added test to reshare a resource to other users with higher role, for example, user receives a share with role Viewer and tries to reshare the resource with role Editor, which should not be possible. Likewise, a user receiving share with role Uploader should not have permission to reshare a resource.

Expected: resharing should not happen and should return status code 403

Added Scenarios:

Scenario: try to reshare a resource to higher roles
Scenario: user with role Uploader tries to reshare a folder

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@PrajwolAmatya PrajwolAmatya self-assigned this Jan 8, 2024
@PrajwolAmatya PrajwolAmatya changed the base branch from stable-5.0 to master January 24, 2024 08:34
@PrajwolAmatya PrajwolAmatya force-pushed the test-reshare-to-higher-roles-sharingNg branch 2 times, most recently from e8d6e63 to bf9d938 Compare January 24, 2024 08:53
@PrajwolAmatya
Copy link
Contributor Author

The resharing feature is expected to be dropped, as mentioned in the comment. So, we don't add new tests for resharing.

@PrajwolAmatya PrajwolAmatya force-pushed the test-reshare-to-higher-roles-sharingNg branch from ded8edd to d0d7cbd Compare January 25, 2024 06:32
Copy link

sonarcloud bot commented Jan 25, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ScharfViktor we will only add this reshare test and we will not add any reshare tests until next decision

@PrajwolAmatya PrajwolAmatya merged commit 759b443 into master Jan 25, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the test-reshare-to-higher-roles-sharingNg branch January 25, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants