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 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
Base automatically changed from pss/pss-with-state-commands to main December 9, 2025 17:24
…ers` command

Note: I've excluded the `terraform providers locks` and `terraform providers mirror` commands as they don't interact with backends.
@SarahFrench SarahFrench force-pushed the pss/pss-with-provider-commands branch from 1ab5e53 to f9d9db3 Compare December 11, 2025 16:35
@SarahFrench SarahFrench marked this pull request as ready for review December 11, 2025 16:36
@SarahFrench SarahFrench requested a review from a team as a code owner December 11, 2025 16:36
@SarahFrench
Copy link
Member Author

TODO: Tests should make assertions about the schema of the store itself being in the returned schema.

@SarahFrench SarahFrench marked this pull request as draft December 11, 2025 16:45
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