helper/resource: Fix regression by allowing providers to be defined both at the TestCase level, and within TestStep.Config (#177)
v1.5.0
FEATURES:
config: Introduced new config package which contains interfaces and helper functions for working with native Terraform configuration and variables (#153)
helper/resource: Added TestStep.ConfigDirectory to allow specifying a directory containing Terraform configuration for use during acceptance tests (#153)
helper/resource: Added TestStep.ConfigFile to allow specifying a file containing Terraform configuration for use during acceptance tests (#153)
helper/resource: Added TestStep.ConfigVariables to allow specifying Terraform variables for use with Terraform configuration during acceptance tests (#153)
helper/resource: Removed data resource and managed resource id attribute requirement (#84)
ENHANCEMENTS:
helper/resource: Added TestStep type ImportStateVerifyIdentifierAttribute field, which can override the default id attribute used for matching prior resource state with imported resource state (#84)
v1.4.0
FEATURES:
tfjsonpath: Introduced new tfjsonpath package which contains methods that allow traversal of Terraform JSON data (#154)
plancheck: Added ExpectUnknownValue built-in plan check, which asserts that a given attribute has an unknown value (#154)
plancheck: Added ExpectSensitiveValue built-in plan check, which asserts that a given attribute has a sensitive value (#154)
v1.3.0
FEATURES:
tfversion: Introduced new tfversion package with interface and built-in Terraform version check functionality (#128)
tfversion: Added SkipAbove built-in version check, which skips the test if the Terraform CLI version is above the given maximum. (#128)
tfversion: Added SkipBelow built-in version check, which skips the test if the Terraform CLI version is below the given minimum. (#128)
tfversion: Added SkipBetween built-in version check, which skips the test if the Terraform CLI version is between the given minimum (inclusive) and maximum (exclusive). (#128)
tfversion: Added SkipIf built-in version check, which skips the test if the Terraform CLI version matches the given version. (#128)
tfversion: Added RequireAbove built-in version check, which fails the test if the Terraform CLI version is below the given maximum. (#128)
tfversion: Added RequireBelow built-in version check, which fails the test if the Terraform CLI version is above the given minimum. (#128)
tfversion: Added RequireBetween built-in version check, fails the test if the Terraform CLI version is outside the given minimum (exclusive) and maximum (inclusive). (#128)
tfversion: Added RequireNot built-in version check, which fails the test if the Terraform CLI version matches the given version. (#128)
tfversion: Added Any built-in version check, which fails the test if none of the given sub-checks return a nil error and empty skip message. (#128)
tfversion: Added All built-in version check, which fails or skips the test if any of the given sub-checks return a non-nil error or non-empty skip message. (#128)
BUG FIXES:
helper/resource: Fix path used when persisting working directory (#113)
helper/resource: Fix regression by allowing providers to be defined both at the TestCase level, and within TestStep.Config (#177)
1.5.0 (August 31, 2023)
FEATURES:
config: Introduced new config package which contains interfaces and helper functions for working with native Terraform configuration and variables (#153)
helper/resource: Added TestStep.ConfigDirectory to allow specifying a directory containing Terraform configuration for use during acceptance tests (#153)
helper/resource: Added TestStep.ConfigFile to allow specifying a file containing Terraform configuration for use during acceptance tests (#153)
helper/resource: Added TestStep.ConfigVariables to allow specifying Terraform variables for use with Terraform configuration during acceptance tests (#153)
helper/resource: Removed data resource and managed resource id attribute requirement (#84)
ENHANCEMENTS:
helper/resource: Added TestStep type ImportStateVerifyIdentifierAttribute field, which can override the default id attribute used for matching prior resource state with imported resource state (#84)
1.4.0 (July 24, 2023)
FEATURES:
tfjsonpath: Introduced new tfjsonpath package which contains methods that allow traversal of Terraform JSON data (#154)
plancheck: Added ExpectUnknownValue built-in plan check, which asserts that a given attribute has an unknown value (#154)
plancheck: Added ExpectSensitiveValue built-in plan check, which asserts that a given attribute has a sensitive value (#154)
1.3.0 (June 13, 2023)
FEATURES:
tfversion: Introduced new tfversion package with interface and built-in Terraform version check functionality (#128)
tfversion: Added SkipAbove built-in version check, which skips the test if the Terraform CLI version is above the given maximum. (#128)
tfversion: Added SkipBelow built-in version check, which skips the test if the Terraform CLI version is below the given minimum. (#128)
tfversion: Added SkipBetween built-in version check, which skips the test if the Terraform CLI version is between the given minimum (inclusive) and maximum (exclusive). (#128)
tfversion: Added SkipIf built-in version check, which skips the test if the Terraform CLI version matches the given version. (#128)
tfversion: Added RequireAbove built-in version check, which fails the test if the Terraform CLI version is below the given maximum. (#128)
tfversion: Added RequireBelow built-in version check, which fails the test if the Terraform CLI version is above the given minimum. (#128)
tfversion: Added RequireBetween built-in version check, fails the test if the Terraform CLI version is outside the given minimum (exclusive) and maximum (inclusive). (#128)
tfversion: Added RequireNot built-in version check, which fails the test if the Terraform CLI version matches the given version. (#128)
tfversion: Added Any built-in version check, which fails the test if none of the given sub-checks return a nil error and empty skip message. (#128)
tfversion: Added All built-in version check, which fails or skips the test if any of the given sub-checks return a non-nil error or non-empty skip message. (#128)
BUG FIXES:
helper/resource: Fix path used when persisting working directory (#113)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/hashicorp/terraform-plugin-testing from 1.2.0 to 1.5.1.
Release notes
Sourced from github.com/hashicorp/terraform-plugin-testing's releases.
Changelog
Sourced from github.com/hashicorp/terraform-plugin-testing's changelog.
Commits
dee4bfb
Update changelog23929ab
Fix regression by allowing providers defined atTestCase
level with provide...5b9c7a4
Update changeloge46c64f
Add Option to use Terraform Configuration in TestStep (#153)5eb089d
terraform: Add deprecation Go documentation comments (#171)c132058
helper/resource: Refactor various unit testing to use inline providers (#170)d6717ae
website: Update GitHub Actions example for setup-go@v4 and using go.mod versi...18deced
helper/resource: Remove data source and resourceid
attribute requirement (...ba04167
internal/testing: Initial testsdk and testprovider packages (#166)12db397
build(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#167)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show