8000 Releases · hashicorp/terraform-plugin-testing · GitHub
[go: up one dir, main page]

Skip to content

Releases: hashicorp/terraform-plugin-testing

v1.13.2

11 Jun 20:55
8000 Compare
Choose a tag to compare

BUG FIXES:

  • helper/resource: Updated ImportBlockWith* import state modes to use the ExpectNonEmpty field to allow non-empty import plans to pass successfully. (#518)
  • helper/resource: Fixed bug with import state mode where prior test config is not used for ConfigFile or ConfigDirectory (#516)

v1.13.1

21 May 21:49
Compare
Choose a tag to compare

BUG FIXES:

  • echoprovider: Fixed bug where Terraform v1.12+ would return an error message indicating the provider doesn't support GetResourceIdentitySchemas. (#512)

v1.13.0

16 May 19:05
Compare
Choose a tag to compare

NOTES:

  • reduced the volume of DEBUG-level logging to make it easier to visually scan debug output (#463)

FEATURES:

  • ImportState: Added support for testing plannable import via Terraform configuration. Configuration is used from the previous test step if available. Config, ConfigFile, and ConfigDirectory can also be used directly with ImportState if needed. (#442)
  • ImportState: Added ImportStateKind to control which method of import the Imp 8000 ortState test step uses. ImportCommandWithID (default, same behavior as today) , ImportBlockWithID, and ImportBlockWithResourceIdentity. (#442)
  • ImportState: Added ImportStateConfigExact to opt-out of new import config generation for plannable import. (#494)
  • statecheck: Added ExpectIdentityValueMatchesState state check to assert that an identity value matches a state value at the same path. (#503)
  • statecheck: Added ExpectIdentityValueMatchesStateAtPath state check to assert that an identity value matches a state value at different paths. (#503)

ENHANCEMENTS:

  • statecheck: Added ExpectIdentityValue state check, which asserts a specified attribute value of a managed resource identity in state. (#468)
  • statecheck: Added ExpectIdentity state check, which asserts all data of a managed resource identity in state. (#470)
  • Adds AdditionalCLIOptions.PlanOptions.NoRefresh to test terraform plan -refresh=false (#490)

v1.13.0-beta.1

18 Apr 15:33
Compare
Choose a tag to compare
v1.13.0-beta.1 Pre-release
Pre-release

BREAKING CHANGES:

  • importstate: ImportStatePersist and ImportStateVerify are not supported for plannable import (ImportBlockWith*) and will return an error (#476)
  • importstate: renamed ImportStateWithId to ImportStateWithID and renamed ImportCommandWithId to ImportCommandWithID. (#465)

NOTES:

  • This beta pre-release adds support for managed resource identity, which can be used with Terraform v1.12.0-beta2. Acceptance tests can use the ImportBlockWithResourceIdentity kind to exercise the import of a managed resource using its resource identity object values instead of using a string identifier. (#480)

BUG FIXES:

  • importstate: plannable import (ImportBlockWith*) fixed for a resource with a dependency (#476)

v1.13.0-alpha.1

27 Mar 14:57
Compare
Choose a tag to compare
v1.13.0-alpha.1 Pre-release
Pre-release

NOTES:

  • This alpha pre-release contains testing utilities for managed resource identity, which can be used with Terraform v1.12.0-alpha20250319, to assert identity data stored during apply workflows. A managed resource in a provider can read/store identity data using the terraform-plugin-framework@v1.15.0-alpha.1 or terraform-plugin-sdk/v2@v2.37.0-alpha.1 Go modules. To assert identity data stored by a provider in state, use the statecheck.ExpectIdentity state check. (#470)

v1.12.0

18 Mar 16:48
Compare
Choose a tag to compare

NOTES:

  • all: This Go module has been updated to Go 1.23 per the Go support policy. It is recommended to review the Go 1.23 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#454)

FEATURES:

  • knownvalue: added function checks for custom validation of resource attribute or output values. (#412)

ENHANCEMENTS:

  • knownvalue: Updated the ObjectExact error message to report extra/missing attributes from the actual object. (#451)
  • plancheck: Improved the unknown value plan check error messages to include a known value if one exists. (#450)

BUG FIXES:

  • plancheck: Fixed bug with all unknown value plan checks where a valid path would return a "path not found" error. (#450)

v1.11.0

19 Nov 14:50
Compare
Choose a tag to compare

NOTES:

  • all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#371)
  • echoprovider: The echoprovider package is considered experimental and may be altered or removed in a subsequent release (#389)

FEATURES:

  • tfversion: Added SkipIfNotAlpha version check for testing experimental features of alpha Terraform builds. (#388)
  • echoprovider: Introduced new echoprovider package, which contains a v6 Terraform provider that can be used to test ephemeral resource data. (#389)

v1.10.0

08 Aug 21:31
Compare
Choose a tag to compare

NOTES:

  • compare: The compare package is considered experimental and may be altered or removed in a subsequent release (#330)
  • statecheck: CompareValue, CompareValueCollection, and CompareValuePairs state checks are considered experimental and may be altered or removed in a subsequent release. (#330)

FEATURES:

  • compare: Introduced new compare package, which contains interfaces and implementations for value comparisons in state checks. (#330)
  • statecheck: Added CompareValue state check, which compares sequential values of the specified attribute at the given managed resource, or data source, using the supplied value comparer. (#330)
  • statecheck: Added CompareValueCollection state check, which compares each item in the specified collection (e.g., list, set) attribute, with the second specified attribute at the given managed resources, or data sources, using the supplied value comparer. (#330)
  • statecheck: Added CompareValuePairs state check, which compares the specified attributes at the given managed resources, or data sources, using the supplied value comparer. (#330)

v1.9.0

09 Jul 15:39
Compare
Choose a tag to compare

ENHANCEMENTS:

  • knownvalue: Add Int32Exact check for int32 value testing. (#356)
  • knownvalue: Add Float32Exact check for float32 value testing. (#356)

v1.8.0

17 May 15:49
Compare
Choose a tag to compare

FEATURES:

  • plancheck: Added ExpectDeferredChange and ExpectNoDeferredChanges checks for experimental deferred action support. (#331)
  • tfversion: Added SkipIfNotPrerelease version check for testing experimental features of prerelease Terraform builds. (#331)

ENHANCEMENTS:

  • helper/acctest: Improve scope of IPv4/IPv6 random address generation in RandIpAddress() (#305)
  • knownvalue: Add TupleExact, TuplePartial and TupleSizeExact checks for dynamic value testing. (#312)
  • tfversion: Ensured Terraform CLI prerelease versions are considered semantically equal to patch versions in built-in checks to match the Terraform CLI versioning policy (#303)
  • helper/resource: Added (TestCase).AdditionalCLIOptions with AllowDeferral option for plan and apply commands. (#331)

BUG FIXES:

  • helper/resource: Fix panic in output state shimming when a tuple is present. (#310)
  • tfversion: Fixed RequireBelow ignoring equal versioning to fail a test (#303)
0