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

Add helper with a common interface for all test reporters #11998

Merged
merged 7 commits into from
Jul 15, 2019

Conversation

jsoriano
Copy link
Member

Every time we add a new interface, or we change the interface
implemented by a module we have to rewrite also the affected tests.

We have helpers for all interfaces we implement, take advantage of
these helpers to create a single helper that implements the basic
operations needed in integration tests, so all integration tests can
use the same methods, with independence of the interface implemented
by the metricset.

Every time we add a new interface, or we change the interface
implemented by a module we have to rewrite also the affected tests.

We have helpers for all interfaces we implement, take advantage of
these helpers to create a single helper that implements the basic
operations needed in integration tests, so all integration tests can
use the same methods, with independence of the interface implemented
by the metricset.
@jsoriano jsoriano self-assigned this Apr 30, 2019
metricbeat/mb/testing/fetcher.go Outdated Show resolved Hide resolved
metricbeat/mb/testing/fetcher.go Outdated Show resolved Hide resolved
metricbeat/mb/testing/fetcher.go Show resolved Hide resolved
metricbeat/mb/testing/fetcher.go Show resolved Hide resolved
@jsoriano jsoriano marked this pull request as ready for review July 15, 2019 11:18
@jsoriano jsoriano requested review from a team as code owners July 15, 2019 11:18
@jsoriano
Copy link
Member Author

Opening this for review.

It'd be nice to support also pushers, but there is not such an advantage as it wouldn't be so common to migrate from fetcher to pusher or the other way around. It'd be nice in any case to have a common interface for pushers, I leave this for a future change.

@jsoriano jsoriano merged commit 92b73bb into elastic:master Jul 15, 2019
@jsoriano jsoriano deleted the mb-test-metricset-interface branch July 15, 2019 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat review Team:Integrations Label for the Integrations team :Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants