Skip to content

[Metricbeat] Migrate EnvoyProxy server to use ReporterV2 interface#11044

Merged
sayden merged 1 commit intoelastic:masterfrom
berfinsari:migration/mb/reporterv2/envoyproxy/server
Mar 7, 2019
Merged

[Metricbeat] Migrate EnvoyProxy server to use ReporterV2 interface#11044
sayden merged 1 commit intoelastic:masterfrom
berfinsari:migration/mb/reporterv2/envoyproxy/server

Conversation

@berfinsari
Copy link
Copy Markdown
Contributor

@berfinsari berfinsari commented Mar 2, 2019

Refer to #10774 for more info

@berfinsari berfinsari requested a review from a team as a code owner March 2, 2019 22:27
@elasticmachine
Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@sayden sayden added Team:Integrations Label for the Integrations team Metricbeat Metricbeat labels Mar 4, 2019
@sayden
Copy link
Copy Markdown
Contributor

sayden commented Mar 4, 2019

jenkins, test this please

Copy link
Copy Markdown
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

Just one slight change

}

func TestFetch(t *testing.T) {
func TestData(t *testing.T) {
Copy link
Copy Markdown
Contributor

@sayden sayden Mar 7, 2019

Choose a reason for hiding this comment

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

As commented in your other PR's, now TestData must look like this (sorry for the misleading information at the beginning):

func TestData(t *testing.T) {
	f := mbtest.NewReportingMetricSetV2(t, getConfig())

	if err := mbtest.WriteEventsReporterV2(f, t, ""); err != nil {
		t.Fatal("write", err)
	}
}

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.

The above code is for the new error interface and will not work here.

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.

Updated, in any case, better to merge it like this and do a follow up PR.

@sayden sayden merged commit 2b10ba9 into elastic:master Mar 7, 2019
@sayden
Copy link
Copy Markdown
Contributor

sayden commented Mar 7, 2019

Thank you very much for your contribution @berfinsari !

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.

6 participants