-
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] Test coverage for federated user trying to delete deleted federation connection #11017
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,25 +5,19 @@ Feature: delete federated connections | |
|
||
Background: | ||
Given user "Alice" has been created with default attributes | ||
And "Alice" has created the federation share invitation | ||
And using server "REMOTE" | ||
And user "Brian" has been created with default attributes | ||
And "Brian" has accepted invitation | ||
|
||
|
||
Scenario: federated user deletes the federated connection | ||
Given using server "LOCAL" | ||
And "Alice" has created the federation share invitation | ||
And using server "REMOTE" | ||
And "Brian" has accepted invitation | ||
When user "Brian" deletes federated connection with user "Alice" using the Graph API | ||
Then the HTTP status code should be "200" | ||
|
||
@issue-10216 | ||
Scenario: users should not be able to find federated user after federated user has deleted connection | ||
Given using server "LOCAL" | ||
And "Alice" has created the federation share invitation | ||
And using server "REMOTE" | ||
And "Brian" has accepted invitation | ||
And user "Brian" has deleted federated connection with user "Alice" | ||
Given user "Brian" has deleted federated connection with user "Alice" | ||
And using server "LOCAL" | ||
When user "Alice" searches for federated user "Brian" using Graph API | ||
Then the HTTP status code should be "200" | ||
|
@@ -66,10 +60,6 @@ Feature: delete federated connections | |
@issue-10216 | ||
Scenario: federated user should not be able to find federated share after federated user has deleted connection | ||
Given using server "LOCAL" | ||
And "Alice" has created the federation share invitation | ||
And using server "REMOTE" | ||
And "Brian" has accepted invitation | ||
And using server "LOCAL" | ||
And user "Alice" has created folder "folderToShare" | ||
And user "Alice" has sent the following resource share invitation to federated user: | ||
| resource | folderToShare | | ||
|
@@ -101,10 +91,6 @@ Feature: delete federated connections | |
@issue-10213 | ||
Scenario: federated user should not be able to find federated share after local user has deleted connection | ||
Given using server "LOCAL" | ||
And "Alice" has created the federation share invitation | ||
And using server "REMOTE" | ||
And "Brian" has accepted invitation | ||
And using server "LOCAL" | ||
And user "Alice" has created folder "folderToShare" | ||
And user "Alice" has sent the following resource share invitation to federated user: | ||
| resource | folderToShare | | ||
|
@@ -132,3 +118,9 @@ Feature: delete federated connections | |
} | ||
} | ||
""" | ||
|
||
@issue-10223 | ||
Scenario: federated user tries to delete previously deleted federated connection | ||
Given user "Brian" has deleted federated connection with user "Alice" | ||
When user "Brian" tries to delete federated connection with user "Alice" using the Graph API | ||
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. Would the behavior be same if Alice tries to delete the federated connection here? 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. Yes. It gives 400 (Bad request) when Alice tries to delete the federated connection that has already been deleted by her. We can have test coverage for this scenario also. Will add in the follow-up PR. 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. better to add in this PR, rather than follow-up |
||
Then the HTTP status code should be "404" |
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.
also, try to test these behaviors if possible
#10223 (comment)
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.
Okeii.. I will make another follow-up PR. 👍