Skip to content

Introduce mechanism to stub request handling#55091

Merged
Tim-Brooks merged 7 commits intoelastic:masterfrom
Tim-Brooks:add_request_handlering_stubbing
Apr 14, 2020
Merged

Introduce mechanism to stub request handling#55091
Tim-Brooks merged 7 commits intoelastic:masterfrom
Tim-Brooks:add_request_handlering_stubbing

Conversation

@Tim-Brooks
Copy link
Copy Markdown
Contributor

Currently there is a clear mechanism to stub sending a request through
the transport. However, this is limited to testing exceptions on the
sender side. This commit reworks our transport related testing
infrastructure to allow stubbing request handling on the receiving side.

Currently there is a clear mechanism to stub sending a request through
the transport. However, this is limited to testing exceptions on the
sender side. This commit reworks our transport related testing
infrastructure to allow stubbing request handling on the receiving side.
@Tim-Brooks Tim-Brooks added >test Issues or PRs that are addressing/adding tests :Distributed/Network Http and internode communication implementations v8.0.0 v7.8.0 labels Apr 10, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Network)

Copy link
Copy Markdown
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

Looking good. I've left one comment about the adapted recovery test.

@Tim-Brooks Tim-Brooks requested a review from ywelsch April 14, 2020 14:10
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM. Please run IndexRecoveryIT in a loop for a while before merge to make sure that we have no flakiness with the new test addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >test Issues or PRs that are addressing/adding tests v7.8.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants