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

Convert MalformedDynamicTemplateIT to unit test #119647

Merged

Conversation

cbuescher
Copy link
Member

Most of MalformedDynamicTemplateIT deals with ignoring unknown parameters in indices created previous to version 8. While we still need to check that we can parse those "bad" mappings, we no longer need to check that we can index into them since v7 indices are read-only. This change moves the check for leniency and the check for errors post-v8 to the DynamicTemplatesTests unit test.

Most of MalformedDynamicTemplateIT deals with ignoring unknown
parameters in indices created previous to version 8. While we still need
to check that we can parse those "bad" mappings, we no longer need to
check that we can index into them since v7 indices are read-only.
This change moves the check for leniency and the check for errors
post-v8 to the DynamicTemplatesTests unit test.
@cbuescher cbuescher added >non-issue :Search/Search Search-related issues that do not fall into other categories v9.0.0 labels Jan 7, 2025
@cbuescher cbuescher requested review from javanna and drempapis January 7, 2025 14:09
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jan 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

looks great, thanks

@cbuescher cbuescher merged commit edfe2c5 into elastic:main Jan 7, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants