Skip to content

Conversation

@tobio
Copy link
Member

@tobio tobio commented Nov 13, 2025

Related to #1276

@tobio tobio self-assigned this Nov 13, 2025
Copilot AI review requested due to automatic review settings November 13, 2025 21:13
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 refactors integration policy acceptance tests by extracting inline Terraform configurations into external files. The refactoring improves test maintainability by separating test configuration from test logic, following the pattern used in other parts of the codebase.

Key changes:

  • Moved inline Terraform configurations to structured testdata directories
  • Introduced test configuration variables for dynamic values
  • Removed helper functions that generated inline HCL strings

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

File Description
internal/fleet/integration_policy/acc_test.go Refactored test cases to use ConfigDirectory and ConfigVariables instead of inline Config strings, added embed directive, removed helper functions
internal/fleet/integration_policy/testdata/.../integration_policy.tf Multiple new test configuration files extracted from inline strings, parameterized with variables
Comments suppressed due to low confidence (2)

internal/fleet/integration_policy/testdata/TestAccResourceIntegrationPolicySecrets/single_valued_secrets/import_test/integration_policy.tf:1

  • Corrected spelling of 'api_timeput' to 'api_timeout'.
    internal/fleet/integration_policy/testdata/TestAccResourceIntegrationPolicySecrets/single_valued_secrets/create/integration_policy.tf:1
  • Corrected spelling of 'api_timeput' to 'api_timeout'.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
wandergeek
wandergeek previously approved these changes Nov 13, 2025
@tobio tobio merged commit 06e7f83 into main Nov 13, 2025
54 checks passed
@tobio tobio deleted the extract-acc-tests branch November 13, 2025 23:03
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.

3 participants