-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
System test for elasticsearch module, xpack code path #12482
Conversation
This PR's CI build will fail because the new system test introduced in this PR is failing (yay!?). I will keep this PR open and open other PRs to fix the failures being identified by this new test. |
Pinging @elastic/stack-monitoring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
First bug caught by these tests: #12487. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(as soon as it is green ;-) )
|
||
self.render_config_template(modules=[{ | ||
"name": "elasticsearch", | ||
"metricsets": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like this could get out of date pretty quickly. I wonder if you want to generate this list somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One option, although a bit hacky, could be to look for metricset folders that have data_xpack.go
in them. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM. Also ok to get it in as is for now and follow up on this improvement.
Second bug caught by these tests: #12511. |
jenkins, test this |
1 similar comment
jenkins, test this |
Related: #12256.
This PR introduced a system test to exercise the xpack code path (
xpack.enabled: true
) of the Elasticsearch Metricbeat module. The existing system test is refactored a bit to re-use code.Testing this PR
Activate the virtual env for system tests.
Build the test binary.
Run the integration tests
Assert that there are no errors.