Releases: hashicorp/terraform-plugin-testing
Releases · hashicorp/terraform-plugin-testing
v1.2.0
NOTES:
- This Go module has been updated to Go 1.19 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#91)
- helper/resource: Deprecated
PrefixedUniqueId()
andUniqueId()
. Use thegithub.com/hashicorp/terraform-plugin-sdk/v2/helper/id
package instead. (#96) - helper/resource: Deprecated
RetryContext()
,StateChangeConf
, and associated*Error
types. Use thegithub.com/hashicorp/terraform-plugin-sdk/v2/helper/retry
package instead. (#96) - helper/resource: Deprecated Terraform module-based
TestCheckFunc
, such asTestCheckModuleResourceAttr
. Provider testing should always be possible within the root module of a Terraform configuration. Terraform module testing should be performed with Terraform core functionality or using tooling outside this Go module. (#109)
FEATURES:
- plancheck: Introduced new
plancheck
package with interface and built-in plan check functionality (#63) - plancheck: Added
ExpectResourceAction
built-in plan check, which asserts that a given resource will have a specific resource change type in the plan (#63) - plancheck: Added
ExpectEmptyPlan
built-in plan check, which asserts that there are no resource changes in the plan (#63) - plancheck: Added
ExpectNonEmptyPlan
built-in plan check, which asserts that there is at least one resource change in the plan (#63)
ENHANCEMENTS:
- helper/resource: Added plan check functionality to config and refresh modes with new fields
TestStep.ConfigPlanChecks
andTestStep.RefreshPlanChecks
(#63)
v1.1.0
FEATURES:
- helper/resource: Added
TF_ACC_PERSIST_WORKING_DIR
environment variable to allow persisting of Terraform files generated during each test step (#18) - helper/resource: Added
TestCase
typeWorkingDir
field to allow specifying the base directory where testing files used by the testing module are generated (#18)