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

Export Kibana Client's Transport and Version #12422

Merged
merged 2 commits into from
Jun 7, 2019

Conversation

jalvz
Copy link
Contributor

@jalvz jalvz commented Jun 4, 2019

Follow up on #12266

I was thinking that implementing the RounTripper interface would be enough, but forgot to export the transport object, which is required to mock a Kibana connection outside its own package.

Also need to export the Version.

Use case here: elastic/apm-server@e6bbb20#diff-7abfb8887df4c4f059976f3d276ed9ebR37

Required to mock a Kibana connection outside its own package
@jalvz jalvz requested a review from a team as a code owner June 4, 2019 13:38
@@ -41,8 +41,8 @@ type Connection struct {
Username string
Password string

http *http.Client
version common.Version
Http *http.Client

Choose a reason for hiding this comment

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

struct field Http should be HTTP

Copy link
Contributor

Choose a reason for hiding this comment

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

@jalvz I guess we could satisfy this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ofc! - sorry for delay, was holiday

@jalvz jalvz requested a review from kvch June 4, 2019 13:38
@jalvz jalvz merged commit b2c2bb0 into elastic:master Jun 7, 2019
andrewvc pushed a commit to andrewvc/beats that referenced this pull request Jun 12, 2019
Required to mock a Kibana connection outside its own package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants