terraform-provider-xray
terraform-provider-xray copied to clipboard
Bump github.com/hashicorp/terraform-plugin-testing from 1.5.1 to 1.7.0
Bumps github.com/hashicorp/terraform-plugin-testing from 1.5.1 to 1.7.0.
Release notes
Sourced from github.com/hashicorp/terraform-plugin-testing's releases.
v1.7.0
NOTES:
- helper/resource: Error messages generated by the testing logic, which were updated for clarity in this release, are not protected by compatibility promises. While testing logic errors are usable in certain scenarios with
ErrorCheckandExpectErrorfunctionality, error messaging checks should be based on provider-controlled messaging or when appropriate to use other testing features such asExpectNonEmptyPlaninstead. (#238)- Numerical values in the plan are now represented as json.Number, not float64. Custom plan checks relying upon float64 representation may need altering (#248)
- plancheck: Deprecated
ExpectNullOutputValueandExpectNullOutputValueAtPath. UseExpectKnownOutputValueandExpectKnownOutputValueAtPathwithknownvalue.Nullinstead (#275)- plancheck:
ExpectKnownValue,ExpectKnownOutputValueandExpectKnownOutputValueAtPathplan checks are considered experimental and may be altered or removed in a subsequent release (#276)- statecheck:
ExpectKnownValue,ExpectKnownOutputValueandExpectKnownOutputValueAtPathstate checks are considered experimental and may be altered or removed in a subsequent release (#276)- knownvalue: The
knownvaluepackage is considered experimental and may be altered or removed in a subsequent release (#276)- all: This Go module has been updated to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#300)
FEATURES:
- plancheck: Added
ExpectKnownValueplan check, which asserts that a given resource attribute has a defined type, and value (#248)- plancheck: Added
ExpectKnownOutputValueplan check, which asserts that a given output value has a defined type, and value (#248)- plancheck: Added
ExpectKnownOutputValueAtPathplan check, which asserts that a given output value at a specified path has a defined type, and value (#248)- knownvalue: Introduced new
knownvaluepackage which contains types for working with plan checks and state checks (#248)- statecheck: Introduced new
statecheckpackage with interface and built-in state check functionality (#275)- statecheck: Added
ExpectKnownValuestate check, which asserts that a given resource attribute has a defined type, and value (#275)- statecheck: Added
ExpectKnownOutputValuestate check, which asserts that a given output value has a defined type, and value (#275)- statecheck: Added
ExpectKnownOutputValueAtPathplan check, which asserts that a given output value at a specified path has a defined type, and value (#275)- statecheck: Added
ExpectSensitiveValuebuilt-in state check, which asserts that a given attribute has a sensitive value (#275)BUG FIXES:
- helper/resource: Clarified error messaging from testing failures, especially when using
TestStep.PlanOnly: true(#238)- helper/resource: Fix detection of provider block declaration in
Config,ConfigDirectory, andConfigFile(#265)- helper/resource: Fix detection of terraform block declaration in
Config,ConfigDirectory, andConfigFile(#265)- helper/resource: Fixed internal deferred test helpers to properly report file and line information in test failures. (#292)
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
TestStepnow include post-apply plan checks for output changes in addition to resource changes. If this causes unexpected new test failures, mostoutputconfiguration blocks can be likely be removed. Test steps involving resources and data sources should never need to useoutputconfiguration blocks as plan and state checks support working on resource and data source attributes values directly. (#234)- helper/resource: Implicit
terraform refreshcommands during eachTestStephave 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 finalTestStepwithPlanOnly: true. RemovePlanOnly: truefrom the finalTestStepto 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
ExpectUnknownOutputValuebuilt-in plan check, which asserts that a given output value at a specified address is unknown (#220)- plancheck: Added
ExpectUnknownOutputValueAtPathbuilt-in plan check, which asserts that a given output value at a specified address, and path is unknown (#220)- plancheck: Added
ExpectNullOutputValuebuilt-in plan check, which asserts that a given output value at a specified address is null (#220)- plancheck: Added
ExpectNullOutputValueAtPathbuilt-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_providersconfiguration toTestStep.ConfigTerraform language configuration when using Terraform >= 1.0.* (#216)BUG FIXES:
... (truncated)
Changelog
Sourced from github.com/hashicorp/terraform-plugin-testing's changelog.
1.7.0 (March 05, 2024)
NOTES:
- helper/resource: Error messages generated by the testing logic, which were updated for clarity in this release, are not protected by compatibility promises. While testing logic errors are usable in certain scenarios with
ErrorCheckandExpectErrorfunctionality, error messaging checks should be based on provider-controlled messaging or when appropriate to use other testing features such asExpectNonEmptyPlaninstead. (#238)- Numerical values in the plan are now represented as json.Number, not float64. Custom plan checks relying upon float64 representation may need altering (#248)
- plancheck: Deprecated
ExpectNullOutputValueandExpectNullOutputValueAtPath. UseExpectKnownOutputValueandExpectKnownOutputValueAtPathwithknownvalue.Nullinstead (#275)- plancheck:
ExpectKnownValue,ExpectKnownOutputValueandExpectKnownOutputValueAtPathplan checks are considered experimental and may be altered or removed in a subsequent release (#276)- statecheck:
ExpectKnownValue,ExpectKnownOutputValueandExpectKnownOutputValueAtPathstate checks are considered experimental and may be altered or removed in a subsequent release (#276)- knownvalue: The
knownvaluepackage is considered experimental and may be altered or removed in a subsequent release (#276)- all: This Go module has been updated to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#300)
FEATURES:
- plancheck: Added
ExpectKnownValueplan check, which asserts that a given resource attribute has a defined type, and value (#248)- plancheck: Added
ExpectKnownOutputValueplan check, which asserts that a given output value has a defined type, and value (#248)- plancheck: Added
ExpectKnownOutputValueAtPathplan check, which asserts that a given output value at a specified path has a defined type, and value (#248)- knownvalue: Introduced new
knownvaluepackage which contains types for working with plan checks and state checks (#248)- statecheck: Introduced new
statecheckpackage with interface and built-in state check functionality (#275)- statecheck: Added
ExpectKnownValuestate check, which asserts that a given resource attribute has a defined type, and value (#275)- statecheck: Added
ExpectKnownOutputValuestate check, which asserts that a given output value has a defined type, and value (#275)- statecheck: Added
ExpectKnownOutputValueAtPathplan check, which asserts that a given output value at a specified path has a defined type, and value (#275)- statecheck: Added
ExpectSensitiveValuebuilt-in state check, which asserts that a given attribute has a sensitive value (#275)BUG FIXES:
- helper/resource: Clarified error messaging from testing failures, especially when using
TestStep.PlanOnly: true(#238)- helper/resource: Fix detection of provider block declaration in
Config,ConfigDirectory, andConfigFile(#265)- helper/resource: Fix detection of terraform block declaration in
Config,ConfigDirectory, andConfigFile(#265)- helper/resource: Fixed internal deferred test helpers to properly report file and line information in test failures. (#292)
1.6.0 (December 04, 2023)
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
TestStepnow include post-apply plan checks for output changes in addition to resource changes. If this causes unexpected new test failures, mostoutputconfiguration blocks can be likely be removed. Test steps involving resources and data sources should never need to useoutputconfiguration blocks as plan and state checks support working on resource and data source attributes values directly. (#234)- helper/resource: Implicit
terraform refreshcommands during eachTestStephave 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 finalTestStepwithPlanOnly: true. RemovePlanOnly: truefrom the finalTestStepto 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
ExpectUnknownOutputValuebuilt-in plan check, which asserts that a given output value at a specified address is unknown (#220)- plancheck: Added
ExpectUnknownOutputValueAtPathbuilt-in plan check, which asserts that a given output value at a specified address, and path is unknown (#220)- plancheck: Added
ExpectNullOutputValuebuilt-in plan check, which asserts that a given output value at a specified address is null (#220)- plancheck: Added
ExpectNullOutputValueAtPathbuilt-in plan check, which asserts that a given output value at a specified address, and path is null (#220)ENHANCEMENTS:
... (truncated)
Commits
beb5594Update changelog77f39ffbuild(deps): Bump golang.org/x/crypto from 0.20.0 to 0.21.0 (#301)246ec98Bump Go version to 1.21 (#300)8d96004Adding experimental status and example usage forExpectKnownValue, `ExpectK...cfd6640build(deps): Bump github.com/hashicorp/hcl/v2 from 2.19.1 to 2.20.0 (#298)d9286dbbuild(deps): Bump github.com/zclconf/go-cty from 1.14.2 to 1.14.3 (#299)e3316c0build(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#296)ff585cfAdd calls tot.Helper()indefered functions (#293)a8803edbuild(deps): Bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#297)058bbd4Result of tsccr-helper -log-level=info gha update -latest . (#291)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot rebase
Superseded by #190.