Skip to content

Conversation

@tobio
Copy link
Member

@tobio tobio commented Dec 3, 2025

Related to #836

Bringing this resource inline with the current expectations whilst I'm here.

@tobio tobio requested review from dimuon and nick-benoit December 3, 2025 10:45
@tobio tobio self-assigned this Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 10:45
Copy link
Contributor

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 migrates fleet output acceptance tests to use a testdata directory structure instead of inline configuration strings. The changes align with current testing expectations by separating Terraform configurations into external files and using ConfigDirectory and ConfigVariables for test setup.

Key Changes

  • Replaced inline test configuration strings with embedded testdata files
  • Updated test steps to use ConfigDirectory and ConfigVariables instead of inline Config
  • Removed helper functions that generated configuration strings (testAccResourceOutputCreate* and testAccResourceOutputUpdate*)

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/fleet/output/acc_test.go Migrated test cases to use embedded testdata files and ConfigDirectory pattern; removed inline configuration helper functions
internal/fleet/output/testdata/TestAccResourceOutputElasticsearch/create/output.tf New testdata file for Elasticsearch output create test case
internal/fleet/output/testdata/TestAccResourceOutputElasticsearch/create/variables.tf Variable definition for Elasticsearch create test
internal/fleet/output/testdata/TestAccResourceOutputElasticsearch/update/output.tf New testdata file for Elasticsearch output update test case
internal/fleet/output/testdata/TestAccResourceOutputElasticsearch/update/variables.tf Variable definition for Elasticsearch update test
internal/fleet/output/testdata/TestAccResourceOutputElasticsearchFromSDK/create/output.tf New testdata file for SDK-based Elasticsearch output test
internal/fleet/output/testdata/TestAccResourceOutputLogstash/create/output.tf New testdata file for Logstash output create test case
internal/fleet/output/testdata/TestAccResourceOutputLogstash/create/variables.tf Variable definition for Logstash create test
internal/fleet/output/testdata/TestAccResourceOutputLogstash/update/output.tf New testdata file for Logstash output update test case
internal/fleet/output/testdata/TestAccResourceOutputLogstash/update/variables.tf Variable definition for Logstash update test
internal/fleet/output/testdata/TestAccResourceOutputLogstashFromSDK/create/output.tf New testdata file for SDK-based Logstash output create test
internal/fleet/output/testdata/TestAccResourceOutputLogstashFromSDK/update/output.tf New testdata file for SDK-based Logstash output update test
internal/fleet/output/testdata/TestAccResourceOutputKafka/create/output.tf New testdata file for Kafka output create test case
internal/fleet/output/testdata/TestAccResourceOutputKafka/create/variables.tf Variable definition for Kafka create test
internal/fleet/output/testdata/TestAccResourceOutputKafka/update/output.tf New testdata file for Kafka output update test case
internal/fleet/output/testdata/TestAccResourceOutputKafka/update/variables.tf Variable definition for Kafka update test
internal/fleet/output/testdata/TestAccResourceOutputKafkaComplex/create/output.tf New testdata file for complex Kafka output test case
internal/fleet/output/testdata/TestAccResourceOutputKafkaComplex/create/variables.tf Variable definition for complex Kafka test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants