Skip to content

Conversation

@SarahFrench
Copy link
Member

Following #37569, this PR demonstrates that the provider commands -that interact with backends- work when pluggable state storage is in use.

The E2E tests rely on a test fixture resembling a fully initialised working directory, including some local state describing an instance of the terraform_data resource. That state is inspected by the commands in the tests.

The integration tests use an existing test fixture because some state_store config needs to be present for the test, but the state present in tests is contained within the mock provider definition.

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

SarahFrench and others added 20 commits November 24, 2025 13:08
…ing tests where the values in `MockStates` aren't compatible with the `ReadStateBytesFn` default function. Make existing test set an appropriate value in `MockStates`.
…egration with pluggable state storage code.
…mand under test.

This test fixure is reused across tests that need the config to define a state store but otherwise rely on the mock provider to set up the test scenario.
The internal/command/testdata/state-commands-state-store and internal/command/testdata/state-store-unchanged test fixtures are the same.
…using grpcwrap package

This was removed, incorrectly, in #37899
…ers` command

Note: I've excluded the `terraform providers locks` and `terraform providers mirror` commands as they don't interact with backends.
@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Dec 2, 2025
@SarahFrench SarahFrench force-pushed the pss/pss-with-state-commands branch 3 times, most recently from bb7d519 to c2d9c42 Compare December 4, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant