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

Update tests for the snapshot collector #787

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

sysadmind
Copy link
Contributor

To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

  • Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
  • Fix Describe() including the repositoryMetrics to pass tests
  • Break test fixtures out to individual files

To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

- Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
- Fix `Describe()` including the repositoryMetrics to pass tests
- Break test fixtures out to individual files

Signed-off-by: Joe Adams <[email protected]>
@sysadmind sysadmind requested a review from SuperQ October 10, 2023 02:53
@sysadmind sysadmind merged commit cf37e02 into prometheus-community:master Oct 11, 2023
2 checks passed
@sysadmind sysadmind deleted the snapshot-tests branch October 15, 2023 18:36
@sysadmind sysadmind added this to the Test Cleanup milestone Oct 15, 2023
jaimeyh pushed a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

- Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
- Fix `Describe()` including the repositoryMetrics to pass tests
- Break test fixtures out to individual files

Signed-off-by: Joe Adams <[email protected]>
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
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