BUG FIXES:
- Backported #591, making sure the pre-destroy state was passed to CheckDestroy, instead of the post-destroy state (#728)
- Updated import testing when using binary testing to work with Terraform 0.13 and above, with registry addresses in state. (#702)
FEATURES:
- Backported reattach mode for binary acceptance testing. Set
TF_ACCTEST_REATTACH
to1
when using binary testing to enable reattach mode, which will allow debugging the provider under test and accurate test coverage results. (#527)
ENHANCEMENTS:
- Improved plan output for unexpected diffs when using binary testing (#553)
BUG FIXES:
- Fixed a bug with binary testing that would use the wrong state when verifying import state (#553)
- Restored TestStep numbers in various outputs for binary testing (#553)
- Made resource detection when verifying import state more robust (#553)
- Removed excessive logging when using binary acceptance testing (#553)
- Fixed a bug that would sometimes bypass ExpectNonEmptyError during binary testing (#553)
- Fixed binary testing to respect
TestStep.Destroy
and more accurately mirror the legacy testing behavior (#553) - Fixed a bug with ExpectNonEmptyPlan tests when using binary testing (#590)
- Surfaced errors when running destroy after tests when using binary testing (#590)
FEATURES:
- The binary test driver will now automatically install and verify the signature of a
terraform
binary if needed (#491)
FEATURES:
- Bump hashicorp/go-plugin to v1.2.0 which should enable grpc reflection (#468)
BUG FIXES:
DEPRECATIONS:
- Deprecate
DisableBinaryDriver
(#450) - Deprecate the
helper/mutexkv
,helper/pathorcontents
,httpclient
, andhelper/hashcode
packages (#453)
FEATURES:
- Allow disabling binary testing via
TF_DISABLE_BINARY_TESTING
environment variable. (#441)
BUG FIXES:
- More accurate results for
schema.ResourceData.HasChange
when dealing with a Set inside another Set. (#362)
DEPRECATED:
- helper/encryption: In line with sensitive state best practices, the
helper/encryption
package is deprecated. (#437)
ENHANCEMENTS:
- Better error messaging when indexing into TypeSet for test checks, while the binary driver is enabled (currently not supported) (#417)
- Prevent ConflictsWith from self referencing and prevent referencing multi item Lists or Sets (#416] [#423] [#426)
FEATURES:
- Added validation helper
RequiredWith
(#342)
BUG FIXES:
- Binary acceptance test driver: omit test cleanup when state is empty (#356)
- Make mockT.Fatal halt execution (#396)
DEPENDENCIES:
github.com/hashicorp/terraform-plugin-test@v1.2.0
->v1.3.0
[#400]
BUG FIXES:
- Binary acceptance test driver: fix cleanup of temporary directories (#378)
DEPRECATED:
- helper/schema:
ResourceData.GetOkExists
will not be removed in the next major version unless a suitable replacement or alternative can be prescribed (#350)
FEATURES:
- Added support for additional protocol 5.2 fields (
Description
,DescriptionKind
,Deprecated
) (#353)
BUG FIXES:
- Binary acceptance test driver: auto-configure providers (#355)
FEATURES:
- helper/validation:
StringNotInSlice
(#341)
FEATURES:
- Binary acceptance test driver (#262)
DEPRECATED:
DEPRECATED:
- helper/validation:
ValidateListUniqueStrings
(#301) - helper/validation:
SingleIP
(#301) - helper/validation:
IPRange
(#301) - helper/validation:
CIDRNetwork
(#301) - helper/validation:
ValidateJsonString
(#301) - helper/validation:
ValidateRegexp
(#301) - helper/validation:
ValidateRFC3339TimeString
(#296)
FEATURES:
- helper/validation:
IntDivisibleBy
(#296) - helper/validation:
IntNotInSlice
(#296) - helper/validation:
IsIPv6Address
(#296) - helper/validation:
IsIPv4Address
(#296) - helper/validation:
IsCIDR
(#296) - helper/validation:
IsMACAddress
(#296) - helper/validation:
IsPortNumber
(#296) - helper/validation:
IsPortNumberOrZero
(#296) - helper/validation:
IsDayOfTheWeek
(#296) - helper/validation:
IsMonth
(#296) - helper/validation:
IsRFC3339Time
(#296) - helper/validation:
IsURLWithHTTPS
(#296) - helper/validation:
IsURLWithHTTPorHTTPS
(#296) - helper/validation:
IsURLWithScheme
(#296) - helper/validation:
ListOfUniqueStrings
(#301) - helper/validation:
IsIPAddress
(#301) - helper/validation:
IsIPv4Range
(#301) - helper/validation:
IsCIDRNetwork
(#301) - helper/validation:
StringIsJSON
(#301) - helper/validation:
StringIsValidRegExp
(#301)
FEATURES:
- helper/validation:
StringIsEmpty
(#294) - helper/validation:
StringIsNotEmpty
(#294) - helper/validation:
StringIsWhiteSpace
(#294) - helper/validation:
StringIsNotWhiteSpace
(#294) - helper/validation:
IsUUID
(#294) (#297)
BUG FIXES:
- schema/ExactlyOneOf: Fix handling of unknowns in complex types (#287)
BUG FIXES:
- helper/resource: Don't crash when dependent test sweeper is missing (#279)
NOTES:
- pruned dead code from internal pkg (#251)
- bumped dependency of
terraform-config-inspect
to remove transitive dependency (#252)
FEATURES:
- helper/validation: Add
FloatAtLeast
andFloatAtMost
validation functions (#239) - helper/validation: Add
StringDoesNotMatch
validation function (#240) - ResourceData: Add
HasChanges
variadic method (#241)
NOTES:
- The internalized version of Terraform that exists for the acceptance test framework has received several cherry picks in an effort to keep it in sync with how Terraform behaves. This process is performed on a best effort basis.
FEATURES:
- helper/validation: Add
StringDoesNotContainAny
validation function (#212) - helper/schema: Introduce
ExactlyOneOf
andAtLeastOneOf
validation checks against schema attributes (#225)
BUG FIXES:
- helper/resource: Ensure dependent sweepers are all added. (#213)
FEATURES:
- helper/resource: Introduce sweeper flag
-sweep-allow-failures
to continue other sweepers after failures (#198)
BUG FIXES:
SDKVersion
in v1.1.0 was incorrectly set to "1.0.0" due to a bug in the release script. Fix for versions beginning at v1.1.1. (#191)
FEATURES:
schema.Provider.TerraformVersion
now defaults to "0.11+compatible" to indicate when Terraform 0.10/0.11 CLI is communicating with the plugin. (#52)terraform plan
andterraform apply
will now warn when the-target
option is used, to draw attention to the fact that the result of applying the plan is likely to be incomplete, and to remind to re-runterraform plan
with no targets afterwards to ensure that the configuration has converged. (#182)- config: New function
parseint
for parsing strings containing digits as integers in various bases. (#181) - config: New function
cidrsubnets
, which is a companion to the existing functioncidrsubnet
which can allocate multiple consecutive subnet prefixes (possibly of different prefix lengths) in a single call. (#187)
BUG FIXES:
- Fix persistence of private data in acceptance tests. (#183)
- command/import: fix error during import when implied provider was not used. (#184)
- Fix evaluation errors when an indexed data source is evaluated during refresh. (#188)
This SDK is functionally equivalent to the "legacy" SDK in hashicorp/terraform
v0.12.9
.
Migrating to the standalone SDK v1 is covered on the Plugin SDK section of the website.
FEATURES: