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

Adding a unit test for GeoIpDownloader.cleanDatabases #110650

Merged

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Jul 9, 2024

This adds a unit test for GeoIpDownloader::runDownloader, specifically testing the behavior of the cleanDatabases() method that runDownloader() calls.

@masseyke masseyke added >test Issues or PRs that are addressing/adding tests :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v8.16.0 labels Jul 9, 2024
@masseyke masseyke requested a review from joegallo July 9, 2024 15:32
@masseyke masseyke marked this pull request as ready for review July 9, 2024 18:05
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jul 9, 2024
Copy link
Contributor

@joegallo joegallo left a comment

Choose a reason for hiding this comment

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

Nice!

/*
* The following two lines assert current behavior that might not be desirable -- we continue to delete expired databases every
* time that runDownloader runs. This seems unnecessary.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, this current behavior seems unintentional to me.

@masseyke masseyke merged commit 4f25a39 into elastic:main Jul 9, 2024
16 checks passed
@masseyke masseyke deleted the adding-test-for-GeoIpDownloader-cleanDatabases branch July 9, 2024 19:19
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Jul 9, 2024
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants