hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[TechDebt]: Use HCL files for provider test configurations #33258

Open jar-b opened 1 year ago

jar-b commented 1 year ago

Description

v1.5.0 of the terraform-plugin-testing library introduced several new TestStep methods to enable test Terraform configurations to be passed in as standalone files. These include TestStep.ConfigDirectory, TestStep.ConfigFile, and TestStep.ConfigVariables.

These methods present an opportunity to make acceptance test configurations more readable, organized, and easily formatted. While conversion of all existing test suites may not be possible, we should consider establishing preferred patterns for the AWS Provider and document those for net-new acceptances tests, similar to the recommendations we publish (or plan to publish) for AWS and Terraform Plugin SDKs.

References

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue