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

Fix module config defaults in light modules #12674

Merged
merged 2 commits into from
Jun 27, 2019

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jun 25, 2019

Use common base module builder when creating the base module for light
modules, so same defaults are set and same checks are executed. Without
this change there are errors if values that have defaults like period
are not set.

Related to #12270

@jsoriano jsoriano requested a review from a team as a code owner June 25, 2019 15:22
@jsoriano jsoriano self-assigned this Jun 25, 2019
Use common base module builder when creating the base module for light
modules, so same defaults are set and same checks are executed. Without
this change there are errors if values that have defaults like `period`
are not set.
@jsoriano jsoriano force-pushed the fix-lightmetricset-defaults branch from 09bc860 to 308be27 Compare June 25, 2019 15:35
@jsoriano jsoriano requested a review from a team June 25, 2019 15:37
@jsoriano
Copy link
Member Author

jenkins, test this again please

Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

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

is this something we can add tests for?

@jsoriano
Copy link
Member Author

is this something we can add tests for?

I have seen that I already added a test that should have detected this, but it was broken, I pushed a fix for it here.

Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

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

👍 besides typo in the PR title 😬

@jsoriano jsoriano changed the title Fix module config defaults in ligth modules Fix module config defaults in light modules Jun 27, 2019
@jsoriano jsoriano merged commit 453d6f9 into elastic:master Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Metricbeat Metricbeat review Team:Integrations Label for the Integrations team v7.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants