Conversation
Co-authored-by: tobio <444668+tobio@users.noreply.github.com> Agent-Logs-Url: https://github.com/elastic/terraform-provider-elasticstack/sessions/d1904334-33f5-4dd4-8fa7-a716c9a078a6
Copilot
AI
changed the title
[WIP] Update acceptance tests for elasticstack_elasticsearch_index_template coverage
Strengthen index template data source acceptance coverage for alias, template JSON, and metadata/version updates
Mar 25, 2026
Copilot stopped work on behalf of
tobio due to an error
March 25, 2026 03:39
Contributor
|
Run: https://github.com/elastic/terraform-provider-elasticstack/actions/runs/23523647468 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2015
elasticstack_elasticsearch_index_templatedata source acceptance coverage was missing validation for aliasrouting, never asserted aliasfilter, and relied on set-only checks formappings,settings, andmetadata. This change upgrades those weak assertions and adds value-change coverage formappings,settings,metadata, andversion.Alias coverage
TestAccIndexTemplateDataSourceTemplateto configure and assert:routingfilterExact JSON assertions for template fields
template.0.mappingstemplate.0.settingsMetadata/version value diversity
TestAccIndexTemplateDataSourceMetadataVersionIDinto a two-step testmetadataJSON in both stepsversionchanges from the initial value to a different updated valueFixture changes
Example of the strengthened assertions:
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.
Note
Update whitespace formatting in acceptance tests for
elasticstack_elasticsearch_index_templateAdjusts blank lines in the acceptance test files for
elasticstack_elasticsearch_index_template. No functional or behavioral changes are introduced.Macroscope summarized 4eeef8b. (Automatic summaries will resume when PR exits draft mode or review begins).