Skip to content

Run GeoIp YAML tests in multi-project cluster #131521

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

samxbr
Copy link
Contributor

@samxbr samxbr commented Jul 18, 2025

This change runs the GeoIP YAML REST tests in multi-project cluster, it also fixes a bug in DatabaseNodeService.

Sample test run

@samxbr samxbr added >non-issue :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP labels Jul 18, 2025
@samxbr samxbr changed the title Run GeoIp yaml tests in multi-project cluster Run GeoIp YAML tests in multi-project cluster Jul 18, 2025
@samxbr samxbr requested a review from Copilot July 18, 2025 15:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables GeoIP YAML REST tests to run in multi-project clusters and fixes a bug in the DatabaseNodeService class. The changes include refactoring the database checking logic to support multi-project environments and adding new test infrastructure.

  • Refactored DatabaseNodeService.checkDatabases() to extract project-specific logic into a separate method
  • Added new YAML test suite for multi-project GeoIP functionality
  • Fixed package declaration in existing Java test class
  • Updated build configuration to support YAML REST tests

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
DatabaseNodeService.java Refactored database checking logic to support multi-project clusters by extracting project-specific logic
IngestGeoIpClientMultiProjectYamlTestSuiteIT.java Added new YAML test suite for multi-project GeoIP functionality
GeoIpMultiProjectIT.java Fixed package declaration and removed redundant imports
build.gradle Added YAML REST test plugin configuration and dependencies

@samxbr samxbr marked this pull request as ready for review July 18, 2025 23:10
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jul 18, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@samxbr samxbr requested a review from PeteGillinElastic July 18, 2025 23:11
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 >non-issue Team:Data Management Meta label for data/management team v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants