-
Notifications
You must be signed in to change notification settings - Fork 197
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 share resources concurrently to federated user #11039
Open
PrajwolAmatya
wants to merge
1
commit into
master
Choose a base branch
from
test-concurrent-ocm-sharing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1390,3 +1390,125 @@ Feature: an user shares resources using ScienceMesh application | |||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||
""" | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Scenario: local user shares multiple resources concurrently to a single federated user (Personal Space) | ||||||||||||||||||||||||||||||||
Given using server "LOCAL" | ||||||||||||||||||||||||||||||||
And user "Alice" has created the following folders | ||||||||||||||||||||||||||||||||
| path | | ||||||||||||||||||||||||||||||||
| folderToShare1 | | ||||||||||||||||||||||||||||||||
| folderToShare2 | | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded file with content "some content" to "textfile1.txt" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded file with content "hello world" to "textfile2.txt" | ||||||||||||||||||||||||||||||||
When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API: | ||||||||||||||||||||||||||||||||
| resource | space | sharee | shareType | permissionsRole | | ||||||||||||||||||||||||||||||||
| folderToShare1 | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| folderToShare2 | Personal | Brian | user | Editor | | ||||||||||||||||||||||||||||||||
| textfile1.txt | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| textfile2.txt | Personal | Brian | user | File Editor | | ||||||||||||||||||||||||||||||||
Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively | ||||||||||||||||||||||||||||||||
And using server "REMOTE" | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
prashant-gurung899 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||
| resource | folderToShare1 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
Comment on lines
+1412
to
+1413
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we do something like this
Suggested change
Comment on lines
+1411
to
+1413
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare2 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Editor | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile1.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile2.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | File Editor | | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Scenario: local user shares multiple resources concurrently to a single federated user (Project Space) | ||||||||||||||||||||||||||||||||
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 "new-space" with the default quota using the Graph API | ||||||||||||||||||||||||||||||||
And user "Alice" has created a folder "folderToShare1" in space "new-space" | ||||||||||||||||||||||||||||||||
And user "Alice" has created a folder "folderToShare2" in space "new-space" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile1.txt" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt" | ||||||||||||||||||||||||||||||||
When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API: | ||||||||||||||||||||||||||||||||
| resource | space | sharee | shareType | permissionsRole | | ||||||||||||||||||||||||||||||||
| folderToShare1 | new-space | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| folderToShare2 | new-space | Brian | user | Editor | | ||||||||||||||||||||||||||||||||
| textfile1.txt | new-space | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| textfile2.txt | new-space | Brian | user | File Editor | | ||||||||||||||||||||||||||||||||
Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively | ||||||||||||||||||||||||||||||||
And using server "REMOTE" | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare1 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare2 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Editor | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile1.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile2.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | File Editor | | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Scenario: local user shares multiple resources form different spaces concurrently to a single federated 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 "new-space" with the default quota using the Graph API | ||||||||||||||||||||||||||||||||
And user "Alice" has created folder "folderToShare1" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded file with content "some content" to "textfile1.txt" | ||||||||||||||||||||||||||||||||
And user "Alice" has created a folder "folderToShare2" in space "new-space" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt" | ||||||||||||||||||||||||||||||||
When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API: | ||||||||||||||||||||||||||||||||
| resource | space | sharee | shareType | permissionsRole | | ||||||||||||||||||||||||||||||||
| folderToShare1 | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| folderToShare2 | new-space | Brian | user | Editor | | ||||||||||||||||||||||||||||||||
| textfile1.txt | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| textfile2.txt | new-space | Brian | user | File Editor | | ||||||||||||||||||||||||||||||||
Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively | ||||||||||||||||||||||||||||||||
And using server "REMOTE" | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare1 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare2 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Editor | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile1.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile2.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | File Editor | | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Scenario: local user shares multiple resources concurrently to multiple federated users | ||||||||||||||||||||||||||||||||
Given user "Carol" has been created with default attributes | ||||||||||||||||||||||||||||||||
And "Carol" has accepted invitation | ||||||||||||||||||||||||||||||||
And using server "LOCAL" | ||||||||||||||||||||||||||||||||
And user "Alice" has created the following folders | ||||||||||||||||||||||||||||||||
| path | | ||||||||||||||||||||||||||||||||
| folderToShare1 | | ||||||||||||||||||||||||||||||||
| folderToShare2 | | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded file with content "some content" to "textfile1.txt" | ||||||||||||||||||||||||||||||||
And user "Alice" has uploaded file with content "hello world" to "textfile2.txt" | ||||||||||||||||||||||||||||||||
When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API: | ||||||||||||||||||||||||||||||||
| resource | space | sharee | shareType | permissionsRole | | ||||||||||||||||||||||||||||||||
| folderToShare1 | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| folderToShare2 | Personal | Carol | user | Editor | | ||||||||||||||||||||||||||||||||
| textfile1.txt | Personal | Brian | user | Viewer | | ||||||||||||||||||||||||||||||||
| textfile2.txt | Personal | Carol | user | File Editor | | ||||||||||||||||||||||||||||||||
Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively | ||||||||||||||||||||||||||||||||
And using server "REMOTE" | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare1 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Carol" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | folderToShare2 | | ||||||||||||||||||||||||||||||||
| permissionsRole | Editor | | ||||||||||||||||||||||||||||||||
And user "Brian" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile1.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | Viewer | | ||||||||||||||||||||||||||||||||
And user "Carol" should have the following federated share shared by user "Alice" | ||||||||||||||||||||||||||||||||
| resource | textfile2.txt | | ||||||||||||||||||||||||||||||||
| permissionsRole | File Editor | |
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.
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.