Releases: hashicorp/terraform-plugin-sdk
Releases · hashicorp/terraform-plugin-sdk
v2.24.1
BUG FIXES:
- helper/resource: Fixed
TestStep
typeImportStateCheck
field so that it only matches against resources following a change in behaviour in Terraform 1.3 that imports both resources and data sources into state (#1089) - helper/resource: Prevented go-plugin goroutine leak per Terraform command (#1095)
- helper/resource: Prevented goroutine leak per Terraform command when testing terraform-plugin-sdk based providers via
Providers
orProviderFactories
(#1091) - helper/resource: Prevented provider configuration already given error when
TestStep
typeConfig
field already contained provider configuration block (#1092)
v2.24.0
ENHANCEMENTS:
- helper/resource: Added
TestStep
typeRefreshState
field, which enables a step that refreshes state without an explicit apply or configuration changes (#1070)
BUG FIXES:
- helper/resource: Fixed
TestStep
typeImportStateVerify
field so that it only matches against resources following a change in behaviour in Terraform 1.3 that imports both resources and their dependent data sources (#1077)
v2.23.0
ENHANCEMENTS:
- helper/resource: Added Terraform configuration to
TRACE
logging (#1059) - helper/resource: Added
terraform plan
output toTRACE
logging (#1058)
BUG FIXES:
- helper/resource: Prevented
Inconsistent dependency lock file
errors when usingExternalProviders
outside thehashicorp
namespace (#1057)
v2.22.0
ENHANCEMENTS:
- helper/resource: Add ImportStatePersist to optionally persist state generated during import (#1052)
BUG FIXES:
v2.21.0
NOTES:
- This Go module has been updated to Go 1.18 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#1027)
BUG FIXES:
v2.20.0
NOTES:
- helper/logging: Existing
NewTransport()
is now deprecated in favour of using the newNewLoggingHTTPTransport()
orNewSubsystemLoggingHTTPTransport()
(#1006)
FEATURES:
- helper/logging: New
NewLoggingHTTPTransport()
andNewSubsystemLoggingHTTPTransport()
functions, providinghttp.RoundTripper
Transport implementations that log request/response using terraform-plugin-log (#546) (#1006)
v2.19.0
v2.18.0
ENHANCEMENTS:
- helper/resource: Added
TF_ACC_LOG
,TF_LOG_CORE
, andTF_LOG_PROVIDER
environment variable handling for Terraform versions 0.15 and later (#993) - helper/schema: Added sdk.proto logger request duration and response diagnostics logging (#996)
BUG FIXES:
- helper/resource: Ensured errors are always logged. (#983)
v2.17.0
NOTES:
- helper/resource: Provider references or external installation can now be handled at either the
TestCase
orTestStep
level. Using theTestStep
handling, advanced use cases are now enabled such as state upgrade acceptance testing. (#972)
ENHANCEMENTS:
- helper/resource: Added
TestStep
typeExternalProviders
,ProtoV5ProviderFactories
,ProtoV6ProviderFactories
, andProviderFactories
fields (#972)
BUG FIXES:
- helper/resource: Removed extraneous
terraform state show
command when not using theTestStep
typeTaint
field (#972)
v2.16.0
ENHANCEMENTS:
- helper/resource: Added error logging before failing tests, so errors are visible in test output and any separate log file (#958)
BUG FIXES:
- helper/resource: Updated version of hc-install in response to change in HashiCorp Release API sending back a different
Content-Type
header. This was causing failures when the SDK attempted to install Terraform. (#960)