Skip to content

[TEST] Remove YAML Tests #131434

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 4 commits into from
Jul 18, 2025
Merged

Conversation

joshua-adams-1
Copy link
Contributor

Removes YAML tests for the /_cluster/allocation/explain API. The tests passed in alternate, but still supported, values for the APIs. An example is passing "true" for fields expecting a boolean value. While this is explicitly supported by the API, this is not the correct place to be testing this behaviour, and resulted in the API specification failing validation.

See a related PR on the elasticsearch-specification repo, elastic/elasticsearch-specification#4939, where I attempted to update the API spec for the /_cluster/allocation/explain API based on previous changes in #129342, and the inclusion of the YAML tests was failing the validation.

Relates #127028

@joshua-adams-1 joshua-adams-1 requested a review from pquentin July 17, 2025 11:07
@joshua-adams-1 joshua-adams-1 self-assigned this Jul 17, 2025
@joshua-adams-1 joshua-adams-1 added >non-issue :Distributed Coordination/Network Http and internode communication implementations labels Jul 17, 2025
Removes YAML tests for the `/_cluster/allocation/explain` API. The tests
 passed in alternate values for the APIs. An example is passing "true"
 for fields expecting a boolean value. While this is explicitly
 supported by the API, this is not the correct place to be testing this
 behaviour, and resulted in the API specification failing
 validation.

Relates elastic#127028
Copy link
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

cluster.allocation_explain request has been successfully validated!
✔ 8 out of 8 test request cases are passing for cluster.allocation_explain.
✔ 8 out of 8 test response cases are passing for cluster.allocation_explain.

@joshua-adams-1 joshua-adams-1 marked this pull request as ready for review July 18, 2025 09:37
@joshua-adams-1 joshua-adams-1 merged commit 9f22533 into elastic:main Jul 18, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >non-issue v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants