helper/resource: Add new StateStore test mode for smoke testing Terraform state storage#591
Merged
austinvalle merged 20 commits intomainfrom Jan 27, 2026
Merged
helper/resource: Add new StateStore test mode for smoke testing Terraform state storage#591austinvalle merged 20 commits intomainfrom
StateStore test mode for smoke testing Terraform state storage#591austinvalle merged 20 commits intomainfrom
Conversation
austinvalle
commented
Jan 9, 2026
austinvalle
commented
Jan 9, 2026
1 task
34d042d to
ae9b909
Compare
Bumps the github-actions group with 1 update: [actions/setup-go](https://github.com/actions/setup-go). Updates `actions/setup-go` from 6.1.0 to 6.2.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@4dc6199...7a3fe6c) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
SBGoods
approved these changes
Jan 27, 2026
Contributor
SBGoods
left a comment
There was a problem hiding this comment.
The test assertions for the smoke tests look reasonable to me 👍🏾
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Ref: hashicorp/terraform-plugin-go#563
Ref: hashicorp/terraform-plugin-go#594
Ref: hashicorp/terraform-exec#556
Description
This PR introduces a new
StateStoretest mode that can be used to smoke test the state storage being used by Terraform. It runs a variety of Terraform commands to achieve this and is based off of the existing acceptance tests for backends in Terraform core: https://github.com/hashicorp/terraform/blob/main/internal/backend/testing.goThe
StateStoremode does not test locking, there will be a follow-up PR for that functionality and it will be triggered with a different field as not all state store implementations support locking.Note
The
helper/resource/statestore/statestore_test.gotests I have been running locally with the latestmaincommit for Terraform, built with experiments enabled:go install -ldflags="-X main.experimentsAllowed=yes" .I'm assuming we'll get an
alphasnapshot from TF Core sometime soon, which we can then add to our CI and re-run.... but everything is working on my local ATM 😄Rollback Plan
Changes to Security Controls
No