Skip to content

fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.13.1 #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/hashicorp/terraform-plugin-testing v1.5.1 -> v1.13.1 age adoption passing confidence

Release Notes

hashicorp/terraform-plugin-testing (github.com/hashicorp/terraform-plugin-testing)

v1.13.1

Compare Source

BUG FIXES:

  • echoprovider: Fixed bug where Terraform v1.12+ would return an error message indicating the provider doesn't support GetResourceIdentitySchemas. (#​512)

v1.13.0

Compare Source

NOTES:

  • reduced the volume of DEBUG-level logging to make it easier to visually scan debug output (#​463)

FEATURES:

  • ImportState: Added support for testing plannable import via Terraform configuration. Configuration is used from the previous test step if available. Config, ConfigFile, and ConfigDirectory can also be used directly with ImportState if needed. (#​442)
  • ImportState: Added ImportStateKind to control which method of import the ImportState test step uses. ImportCommandWithID (default, same behavior as today) , ImportBlockWithID, and ImportBlockWithResourceIdentity. (#​442)
  • ImportState: Added ImportStateConfigExact to opt-out of new import config generation for plannable import. (#​494)
  • statecheck: Added ExpectIdentityValueMatchesState state check to assert that an identity value matches a state value at the same path. (#​503)
  • statecheck: Added ExpectIdentityValueMatchesStateAtPath state check to assert that an identity value matches a state value at different paths. (#​503)

ENHANCEMENTS:

  • statecheck: Added ExpectIdentityValue state check, which asserts a specified attribute value of a managed resource identity in state. (#​468)
  • statecheck: Added ExpectIdentity state check, which asserts all data of a managed resource identity in state. (#​470)
  • Adds AdditionalCLIOptions.PlanOptions.NoRefresh to test terraform plan -refresh=false (#​490)

v1.12.0

Compare Source

NOTES:

  • all: This Go module has been updated to Go 1.23 per the Go support policy. It is recommended to review the Go 1.23 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#​454)

FEATURES:

  • knownvalue: added function checks for custom validation of resource attribute or output values. (#​412)

ENHANCEMENTS:

  • knownvalue: Updated the ObjectExact error message to report extra/missing attributes from the actual object. (#​451)
  • plancheck: Improved the unknown value plan check error messages to include a known value if one exists. (#​450)

BUG FIXES:

  • plancheck: Fixed bug with all unknown value plan checks where a valid path would return a "path not found" error. (#​450)

v1.11.0

Compare Source

NOTES:

  • all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#​371)
  • echoprovider: The echoprovider package is considered experimental and may be altered or removed in a subsequent release (#​389)

FEATURES:

  • tfversion: Added SkipIfNotAlpha version check for testing experimental features of alpha Terraform builds. (#​388)
  • echoprovider: Introduced new echoprovider package, which contains a v6 Terraform provider that can be used to test ephemeral resource data. (#​389)

v1.10.0

Compare Source

NOTES:

  • compare: The compare package is considered experimental and may be altered or removed in a subsequent release (#​330)
  • statecheck: CompareValue, CompareValueCollection, and CompareValuePairs state checks are considered experimental and may be altered or removed in a subsequent release. (#​330)

FEATURES:

  • compare: Introduced new compare package, which contains interfaces and implementations for value comparisons in state checks. (#​330)
  • statecheck: Added CompareValue state check, which compares sequential values of the specified attribute at the given managed resource, or data source, using the supplied value comparer. (#​330)
  • statecheck: Added CompareValueCollection state check, which compares each item in the specified collection (e.g., list, set) attribute, with the second specified attribute at the given managed resources, or data sources, using the supplied value comparer. (#​330)
  • statecheck: Added CompareValuePairs state check, which compares the specified attributes at the given managed resources, or data sources, using the supplied value comparer. (#​330)

v1.9.0

Compare Source

ENHANCEMENTS:

  • knownvalue: Add Int32Exact check for int32 value testing. (#​356)
  • knownvalue: Add Float32Exact check for float32 value testing. (#​356)

v1.8.0

Compare Source

FEATURES:

  • plancheck: Added ExpectDeferredChange and ExpectNoDeferredChanges checks for experimental deferred action support. (#​331)
  • tfversion: Added SkipIfNotPrerelease version check for testing experimental features of prerelease Terraform builds. (#​331)

ENHANCEMENTS:

  • helper/acctest: Improve scope of IPv4/IPv6 random address generation in RandIpAddress() (#​305)
  • knownvalue: Add TupleExact, TuplePartial and TupleSizeExact checks for dynamic value testing. (#​312)
  • tfversion: Ensured Terraform CLI prerelease versions are considered semantically equal to patch versions in built-in checks to match the Terraform CLI versioning policy (#​303)
  • helper/resource: Added (TestCase).AdditionalCLIOptions with AllowDeferral option for plan and apply commands. (#​331)

BUG FIXES:

  • helper/resource: Fix panic in output state shimming when a tuple is present. (#​310)
  • tfversion: Fixed RequireBelow ignoring equal versioning to fail a test (#​303)

v1.7.0

Compare Source

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 ErrorCheck and ExpectError functionality, error messaging checks should be based on provider-controlled messaging or when appropriate to use other testing features such as ExpectNonEmptyPlan instead. (#​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 ExpectNullOutputValue and ExpectNullOutputValueAtPath. Use ExpectKnownOutputValue and ExpectKnownOutputValueAtPath with knownvalue.Null instead (#​275)
  • plancheck: ExpectKnownValue, ExpectKnownOutputValue and ExpectKnownOutputValueAtPath plan checks are considered experimental and may be altered or removed in a subsequent release (#​276)
  • statecheck: ExpectKnownValue, ExpectKnownOutputValue and ExpectKnownOutputValueAtPath state checks are considered experimental and may be altered or removed in a subsequent release (#​276)
  • knownvalue: The knownvalue package 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 ExpectKnownValue plan check, which asserts that a given resource attribute has a defined type, and value (#​248)
  • plancheck: Added ExpectKnownOutputValue plan check, which asserts that a given output value has a defined type, and value (#​248)
  • plancheck: Added ExpectKnownOutputValueAtPath plan check, which asserts that a given output value at a specified path has a defined type, and value (#​248)
  • knownvalue: Introduced new knownvalue package which contains types for working with plan checks and state checks (#​248)
  • statecheck: Introduced new statecheck package with interface and built-in state check functionality (#​275)
  • statecheck: Added ExpectKnownValue state check, which asserts that a given resource attribute has a defined type, and value (#​275)
  • statecheck: Added ExpectKnownOutputValue state check, which asserts that a given output value has a defined type, and value (#​275)
  • statecheck: Added ExpectKnownOutputValueAtPath plan check, which asserts that a given output value at a specified path has a defined type, and value (#​275)
  • statecheck: Added ExpectSensitiveValue built-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, and ConfigFile (#​265)
  • helper/resource: Fix detection of terraform block declaration in Config, ConfigDirectory, and ConfigFile (#​265)
  • helper/resource: Fixed internal deferred test helpers to properly report file and line information in test failures. (#​292)

v1.6.0

Compare Source

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, most output configuration blocks can be likely be removed. Test steps involving resources and data sources should never need to use output 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 each TestStep 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 final TestStep with PlanOnly: true. Remove PlanOnly: true from the final TestStep 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 to TestStep.Config Terraform language configuration when using Terraform >= 1.0.* (#​216)

BUG FIXES:

  • plancheck: Ensured ExpectEmptyPlan and ExpectNonEmptyPlan account for output changes (#​222)
  • helper/resource: Ensured TestStep.ExpectNonEmptyPlan accounts for output changes with Terraform 0.14 and later (#​234)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Nov 19, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 27 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.18 -> 1.23.0
github.com/hashicorp/terraform-plugin-go v0.19.0 -> v0.27.0
github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c -> v1.1.6
github.com/cloudflare/circl v1.3.7 -> v1.6.0
github.com/golang/protobuf v1.5.3 -> v1.5.4
github.com/google/go-cmp v0.6.0 -> v0.7.0
github.com/google/uuid v1.3.0 -> v1.6.0
github.com/hashicorp/cli v1.1.6 -> v1.1.7
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 -> v1.5.0
github.com/hashicorp/go-hclog v1.5.0 -> v1.6.3
github.com/hashicorp/go-plugin v1.5.1 -> v1.6.3
github.com/hashicorp/go-version v1.6.0 -> v1.7.0
github.com/hashicorp/hc-install v0.6.2 -> v0.9.2
github.com/hashicorp/hcl/v2 v2.18.0 -> v2.23.0
github.com/hashicorp/terraform-exec v0.20.0 -> v0.23.0
github.com/hashicorp/terraform-json v0.21.0 -> v0.25.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 -> v2.37.0
github.com/hashicorp/terraform-registry-address v0.2.2 -> v0.2.5
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d -> v0.1.1
github.com/vmihailenco/msgpack/v5 v5.3.5 -> v5.4.1
github.com/zclconf/go-cty v1.14.1 -> v1.16.2
golang.org/x/crypto v0.17.0 -> v0.38.0
golang.org/x/mod v0.14.0 -> v0.24.0
golang.org/x/net v0.18.0 -> v0.39.0
golang.org/x/sys v0.15.0 -> v0.33.0
golang.org/x/text v0.14.0 -> v0.25.0
google.golang.org/appengine v1.6.7 -> v1.6.8
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 -> v0.0.0-20250218202821-56aae31c358a

@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 5cd91f3 to 8c1c626 Compare December 18, 2024 10:40
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch 2 times, most recently from c45c3b1 to 62acc6d Compare February 24, 2025 08:26
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.11.0 fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.11.0 - autoclosed Feb 25, 2025
@renovate renovate bot closed this Feb 25, 2025
@renovate renovate bot deleted the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch February 25, 2025 12:08
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.11.0 - autoclosed fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.11.0 Feb 25, 2025
@renovate renovate bot reopened this Feb 25, 2025
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch 4 times, most recently from 4926bdb to 0f29ffe Compare February 27, 2025 11:32
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch 2 times, most recently from 21ed53d to 341c6a5 Compare March 13, 2025 18:14
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.11.0 fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.12.0 Mar 18, 2025
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 341c6a5 to 2f71f0e Compare March 18, 2025 19:58
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 2f71f0e to 568dcae Compare April 8, 2025 12:41
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 568dcae to 6223129 Compare April 24, 2025 07:52
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 6223129 to e8fbdd2 Compare May 7, 2025 14:14
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from e8fbdd2 to 05ebc4b Compare May 16, 2025 20:02
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.12.0 fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.13.0 May 16, 2025
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-testing-1.x branch from 05ebc4b to a0110d0 Compare May 21, 2025 23:02
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.13.0 fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.13.1 May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Bots
Development

Successfully merging this pull request may close these issues.

0 participants