Skip to content

[Metricbeat] Add remove fields option to mocked tests config#11716

Merged
sayden merged 2 commits into
elastic:masterfrom
sayden:feature/mb/add_remove_fields_from_comparison
Apr 9, 2019
Merged

[Metricbeat] Add remove fields option to mocked tests config#11716
sayden merged 2 commits into
elastic:masterfrom
sayden:feature/mb/add_remove_fields_from_comparison

Conversation

@sayden
Copy link
Copy Markdown
Contributor

@sayden sayden commented Apr 9, 2019

Split PR from here #11703

Config option remove_fields_from_comparison to remove fields from the JSON generated and expected files to byte-to-byte comparison when asserting tests.

(cherry picked from commit c402e4f52ec4d5c734eac6db1eda38552264c63a)
@sayden sayden added review Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Apr 9, 2019
@sayden sayden self-assigned this Apr 9, 2019
@sayden sayden requested a review from ruflin April 9, 2019 09:12
@sayden sayden requested a review from a team as a code owner April 9, 2019 09:12
@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Apr 9, 2019

@ruflin about your comment #11703 (comment), the difference is the following:
image

I also don't have a strong preference but I thought that this approach, without the spaces in the testing output, will look nicer. The files on disk are correctly indented, of course.

@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Apr 9, 2019

Failure seems unrelated. Merging

@sayden sayden merged commit e76ead1 into elastic:master Apr 9, 2019
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants