-
Notifications
You must be signed in to change notification settings - Fork 186
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] add tests to remove access of shared resource to federated user #10672
base: master
Are you sure you want to change the base?
Conversation
f9f042c
to
7e37e5a
Compare
e3266d0
to
7ba257a
Compare
7ba257a
to
7135198
Compare
This PR is on hold because of bug; #10689 |
Moving it back to |
9474779
to
208932e
Compare
Signed-off-by: prashant-gurung899 <[email protected]>
208932e
to
a28947f
Compare
Quality Gate passedIssues Measures |
* | ||
* @return void | ||
*/ | ||
public function userShouldHaveFederatedShareSharedByUserFromSpace(string $sharee, string $shouldOrNot, string $share, string $sharer, string $space): void { |
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.
public function userShouldHaveFederatedShareSharedByUserFromSpace(string $sharee, string $shouldOrNot, string $share, string $sharer, string $space): void { | |
public function userShouldOrShouldNotHaveFederatedShareSharedByUserFromSpace(string $sharee, string $shouldOrNot, string $share, string $sharer, string $space): void { |
Just my suggestion
@@ -1738,36 +1738,39 @@ public function userRemovesTheLastLinkShareOfSpaceUsingPermissionsEndpointOfGrap | |||
* @param string $sharer | |||
* @param string $space | |||
* @param bool $shouldExist | |||
* @param bool|null $federatedSHare |
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.
* @param bool|null $federatedSHare | |
* @param bool $federatedSHare |
* | ||
* @return void | ||
* @throws GuzzleException | ||
* @throws JsonException | ||
* @throws Exception | ||
*/ | ||
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true): void { | ||
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true, ?bool $federatedSHare= false): void { |
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.
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true, ?bool $federatedSHare= false): void { | |
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true, bool $federatedShare = false): void { |
@@ -1229,3 +1229,24 @@ Feature: an user shares resources using ScienceMesh application | |||
} | |||
} | |||
""" | |||
|
|||
@issue-10213 | |||
Scenario: local user deletes access of shared resource to federated user |
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.
Scenario: local user deletes access of shared resource to federated user | |
Scenario: local user removes access of federated user from a resource |
And user "Brian" lists the shares shared with him without retry using the Graph API | ||
Then the HTTP status code should be "200" | ||
And user "Brian" should not have a federated share "FOLDER" shared by user "Alice" from space "Personal" |
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.
And user "Brian" lists the shares shared with him without retry using the Graph API | |
Then the HTTP status code should be "200" | |
And user "Brian" should not have a federated share "FOLDER" shared by user "Alice" from space "Personal" | |
Then user "Brian" should not have a federated share "FOLDER" shared by user "Alice" from space "Personal" |
Description
This PR adds tests to remove access of a shared resource to federated user( both local and remote).
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: