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 send share invitation to non-existing group #8175

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

PrajwolAmatya
Copy link
Contributor

@PrajwolAmatya PrajwolAmatya commented Jan 11, 2024

Description

Added test scenario to send share invitation to unknown group.
Expected: sharing should fail with status code 400
Added Scenario:

Scenario Outline: send sharing invitation to non-existing group

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:

Comment on lines 974 to 1149
| Viewer | file | /textfile1.txt |
| File Editor | file | /textfile1.txt |
| Co Owner | file | /textfile1.txt |
| Manager | file | /textfile1.txt |
| Viewer | folder | FolderToShare |
| Editor | folder | FolderToShare |
| Co Owner | folder | FolderToShare |
| Uploader | folder | FolderToShare |
| Manager | folder | FolderToShare |
Copy link
Contributor

Choose a reason for hiding this comment

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

all role should not be allowed to file resource see issue #8131

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently every role can be assigned on the file, and this same example table is being used in every other Scenario. What should we do about it? Should we do it as it is or should we wait for some fixes?
cc @amrita-shrestha @saw-jan

Copy link
Member

Choose a reason for hiding this comment

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

I really don't know what roles should be permitted while sharing a file/folder. If it is known then we can make another PR for removing not permitted roles and add some coverage for trying to share with not permitted roles. Then block that PR until the fix arrives
But I don't think we need to block this one.

@PrajwolAmatya PrajwolAmatya force-pushed the send-share-invitation-unknown-group branch from 292b144 to 52feb4e Compare January 18, 2024 11:11
@PrajwolAmatya PrajwolAmatya force-pushed the send-share-invitation-unknown-group branch from 52feb4e to c4b9850 Compare January 19, 2024 03:27
@PrajwolAmatya PrajwolAmatya force-pushed the send-share-invitation-unknown-group branch from c4b9850 to 30e226d Compare January 23, 2024 08:59
@PrajwolAmatya PrajwolAmatya force-pushed the send-share-invitation-unknown-group branch 2 times, most recently from f600883 to 379f884 Compare January 24, 2024 03:27
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

Copy link

sonarcloud bot commented Jan 24, 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

@PrajwolAmatya PrajwolAmatya removed the request for review from SwikritiT January 24, 2024 06:09
@saw-jan saw-jan merged commit 2d20377 into master Jan 24, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the send-share-invitation-unknown-group branch January 24, 2024 06:28
@saw-jan saw-jan changed the title [tests-only][full-ci] added test to send share invitation to unknown group [tests-only][full-ci] added test to send share invitation to non-existing group Jan 24, 2024
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.

None yet

4 participants