Skip to content

Refactor tests for nodes collector #936

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

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

sysadmind
Copy link
Contributor

  • Drop extra test for authenticated requests to elasticsearch. Auth is common across all collectors, so it doesn't make sense to have specific tests for an individual collector.
  • Add missing descriptions
  • Drop tests for minor versions besides the most recent. The output is very large for this collector, and there is little value in testing every single minor version.
  • Update tests to test the output of the metrics
  • Refactor the node roles metric to have the role be dynamic, and to export 0 values for roles that are missing.

- Drop extra test for authenticated requests to elasticsearch. Auth is common across all collectors, so it doesn't make sense to have specific tests for an individual collector.
- Add missing descriptions
- Drop tests for minor versions besides the most recent. The output is very large for this collector, and there is little value in testing every single minor version.
- Update tests to test the output of the metrics
- Refactor the node roles metric to have the role be dynamic, and to export 0 values for roles that are missing.

Signed-off-by: Joe Adams <[email protected]>
@sysadmind sysadmind requested a review from SuperQ September 28, 2024 16:20
Signed-off-by: Joe Adams <[email protected]>
@sysadmind sysadmind added this to the Test Cleanup milestone Sep 28, 2024
@SuperQ SuperQ merged commit 33f42c6 into prometheus-community:master Oct 16, 2024
4 checks passed
@sysadmind sysadmind deleted the nodes-test-refactor branch October 17, 2024 15:39
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.

2 participants