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.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
v1.5.0
of theterraform-plugin-testing
library introduced several newTestStep
methods to enable test Terraform configurations to be passed in as standalone files. These includeTestStep.ConfigDirectory
,TestStep.ConfigFile
, andTestStep.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
36719
Would you like to implement a fix?
None