Skip to content

[Metricbeat] Migrate RabbitMQ test to use ReporterV2 interface#10827

Merged
sayden merged 1 commit intoelastic:masterfrom
sayden:migration/mb/reportv2/rabbitmq/metricset_test
Feb 26, 2019
Merged

[Metricbeat] Migrate RabbitMQ test to use ReporterV2 interface#10827
sayden merged 1 commit intoelastic:masterfrom
sayden:migration/mb/reportv2/rabbitmq/metricset_test

Conversation

@sayden
Copy link
Copy Markdown
Contributor

@sayden sayden commented Feb 19, 2019

Refer to #10774 for more info

@sayden sayden added Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Feb 19, 2019
@sayden sayden self-assigned this Feb 19, 2019
@sayden sayden requested a review from a team as a code owner February 19, 2019 15:41

// Fetch makes an HTTP request to fetch connections metrics from the connections endpoint.
func (m *testMetricSet) Fetch() ([]common.MapStr, error) {
func (m *testMetricSet) Fetch(reporter mb.ReporterV2) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just curious, why we have a fetch function here in the test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeap, this is weird. I have no idea. Maybe it's related with the fact that this modules uses mocked data https://github.com/elastic/beats/tree/master/metricbeat/module/rabbitmq/_meta/testdata

@sayden sayden merged commit ccd3147 into elastic:master Feb 26, 2019
@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Feb 26, 2019

Ups... I merged without ok 😅

@sayden sayden deleted the migration/mb/reportv2/rabbitmq/metricset_test branch December 18, 2020 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants