v1.6.0
NOTES:
- all: This Go module has been updated to Go 1.20 per the Go support policy. It is recommended to review the Go 1.20 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#180)
- helper/resource: Configuration based
TestStep
now include post-apply plan checks for output changes in addition to resource changes. If this causes unexpected new test failures, mostoutput
configuration blocks can be likely be removed. Test steps involving resources and data sources should never need to useoutput
configuration blocks as plan and state checks support working on resource and data source attributes values directly. (#234) - helper/resource: Implicit
terraform refresh
commands during eachTestStep
have been removed to fix plan check and performance issues, which can cause new test failures when testing schema changes (e.g. state upgrades) that have a finalTestStep
withPlanOnly: true
. RemovePlanOnly: true
from the finalTestStep
to fix affected tests which will ensure that updated schema changes are applied to the state before attempting to automatically destroy resources. (#223)
FEATURES:
- plancheck: Added
ExpectUnknownOutputValue
built-in plan check, which asserts that a given output value at a specified address is unknown (#220) - plancheck: Added
ExpectUnknownOutputValueAtPath
built-in plan check, which asserts that a given output value at a specified address, and path is unknown (#220) - plancheck: Added
ExpectNullOutputValue
built-in plan check, which asserts that a given output value at a specified address is null (#220) - plancheck: Added
ExpectNullOutputValueAtPath
built-in plan check, which asserts that a given output value at a specified address, and path is null (#220)
ENHANCEMENTS:
- helper/resource: Removed separate refresh commands, which increases testing performance (#223)
- helper/resource: Automatically add
required_providers
configuration toTestStep.Config
Terraform language configuration when using Terraform >= 1.0.* (#216)
BUG FIXES: