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

jmx-scraper test config sources #1750

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SylvainJuge
Copy link
Contributor

Fixes #1687

Adds tests to cover all the possible ways to provide configuration for jmx-scraper:

  • standard input
  • properties file
  • system properties
  • environment variables

Only the JmxConnectionTest has been parameterized to cover those as the connection with the remote JVM is the most complicated part as the JVM system environment need to be propagated from properties to global system properties.

The test fail when we remove the JmxScraper#propagateToSystemProperties method which handles system properties propagation.

Adding those tests did not uncover any new issue, thus they help prevent any future regression.

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.

[jmx-scraper] test all the possible ways to provide configuration
3 participants