Skip to content

Releases: hashicorp/terraform-plugin-testing

v1.2.0

22 Mar 18:37
Compare
Choose a tag to compare

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() and UniqueId(). Use the github.com/hashicorp/terraform-plugin-sdk/v2/helper/id package instead. (#96)
  • helper/resource: Deprecated RetryContext(), StateChangeConf, and associated *Error types. Use the github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry package instead. (#96)
  • helper/resource: Deprecated Terraform module-based TestCheckFunc, such as TestCheckModuleResourceAttr. 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 and TestStep.RefreshPlanChecks (#63)

v1.1.0

06 Feb 14:30
Compare
Choose a tag to compare

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 type WorkingDir field to allow specifying the base directory where testing files used by the testing module are generated (#18)

v1.0.0

10 Jan 21:11
Compare
Choose a tag to compare

NOTES:

  • Same testing functionality as that of terraform-plugin-sdk v2.24.1, repacked in a standalone repository (#24)