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

Refactor usage test to check individual items in response #116418

Merged

Conversation

kderusso
Copy link
Member

@kderusso kderusso commented Nov 7, 2024

This PR refactors existing usage tests, to check individual items in the _xpack/usage response rather than the entire Json call.

This is required as a pre-requisite to adding additional fields to this call - while additive fields are not a breaking change, they will break REST compatibility tests if they match against an entire json block.

@kderusso kderusso added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.0.0 v8.17.0 labels Nov 7, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

@kderusso kderusso requested a review from a team November 7, 2024 15:18
Copy link
Contributor

@Samiul-TheSoccerFan Samiul-TheSoccerFan left a comment

Choose a reason for hiding this comment

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

Based on the the Slack discussion, the code changes look good

@kderusso kderusso merged commit 8cc2801 into elastic:main Nov 7, 2024
16 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

kderusso added a commit to kderusso/elasticsearch that referenced this pull request Nov 7, 2024
elasticsearchmachine pushed a commit that referenced this pull request Nov 7, 2024
kderusso added a commit to kderusso/elasticsearch that referenced this pull request Nov 7, 2024
jozala pushed a commit that referenced this pull request Nov 13, 2024
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :SearchOrg/Relevance Label for the Search (solution/org) Relevance team >test Issues or PRs that are addressing/adding tests v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants