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

Instantiate SubClient only with kwargs #1505

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

pquentin
Copy link
Member

When SubClient could only be used to mock the node stats API, this was
clear, but it's no longer the case. Thankfully most usage was using
keyword arguments already, so it could be enforced with low effort.

We apply this to the similar Client and TransportClient classes too.

I noticed this when reviewing #1499 from @j-bennet.

When SubClient could only be used to mock the node stats API, this was
clear, but it's no longer the case. Thankfully most usage was using
keyword arguments already, so it could be enforced with low effort.

We apply this to the similar Client and TransportClient classes too.
@pquentin pquentin added cleanup Linter changes, reformatting, removal of unused code etc. :internal Changes for internal, undocumented features: e.g. experimental, release scripts labels May 31, 2022
@pquentin pquentin added this to the 2.5.0 milestone May 31, 2022
@pquentin pquentin requested a review from DJRickyB May 31, 2022 07:24
@pquentin pquentin self-assigned this May 31, 2022
Copy link
Contributor

@DJRickyB DJRickyB left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. LGTM

@pquentin pquentin merged commit 14e4cdf into elastic:master Jun 15, 2022
@pquentin pquentin deleted the telemetry-mock-kwarg-only branch June 15, 2022 07:33
michaelbaamonde pushed a commit to michaelbaamonde/rally that referenced this pull request Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Linter changes, reformatting, removal of unused code etc. :internal Changes for internal, undocumented features: e.g. experimental, release scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants