terraform/internal/command/e2etest
Sarah French a28750d8d1
PSS: Remove handling of state migrations including PSS from the init command (#38388)
* feat: Any state migration situations involving PSS are now resolved through init -reconfigure or the new state migrate command.

Also, remove methods and structs that aren't used anymore: stateStore_to_backend, backend_to_stateStore, stateStore_changed, removeLocalState, errStateStoreClearSaved

* test: Fix test log contents to reference correct test name

* fix: Make sure that errStateStoreInitDiag suggests `init` when the store is uninitialised, and suggest `state migrate` + `init -reconfigure` when a migration is needed

* fix: Make errBackendToStateStoreInitDiag suggest the correct commands for a state migration.

* fix: Standardise on "run <command>" over "use <command>" in error messages

* test: Update tests about handling changes in a state store's configuration.

We need to re-implement these tests in the context of testing a new `state migrate` command

* test: Remove test about handling provider updates in the context of PSS.

We need to re-implement this test in the context of testing a new `state migrate` command with an `-upgrade` flag. We also need to implement behaviour in `init` that blocks upgrading the PSS provider.

* test: Update test where `init` detects a `state_store` block is removed.

* test: Update test where `init` detects a migration from state_store to backend

* test: Update test where `init` detects a migration from backend to state_store

* test: Update test where `init` detects a migration from the cloud backend to state_store

* test: Update E2E test error message assertions to match recent changes
2026-04-16 11:28:05 +01:00
..
testdata PSS: Refactor how we handle unmanaged providers, add support for using dev_override (#38269) 2026-04-14 15:07:56 +01:00
.gitignore Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
automation_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
doc.go make copyrightfix 2026-02-17 13:56:34 +00:00
init_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
main_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
make-archive.sh make copyrightfix 2026-02-17 13:56:34 +00:00
meta_backend_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
module_archive_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
pluggable_state_store_test.go PSS: Remove automatic creation of the default workspace's state file during init (#38281) 2026-03-19 15:47:29 +00:00
primary_test.go PSS: Remove handling of state migrations including PSS from the init command (#38388) 2026-04-16 11:28:05 +01:00
provider_dev_test.go test: Fix E2E tests to use correct errors for assertions, remove use of ioutil in package (#38254) 2026-03-10 13:34:18 +00:00
provider_plugin_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_mirror_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_schema_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_tamper_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
provisioner_plugin_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
provisioner_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
remote_state_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
strip_ansi.go make copyrightfix 2026-02-17 13:56:34 +00:00
terraform_provider_funcs_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
terraform_query_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
terraform_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
unmanaged_test.go PSS: Fix use of reattached providers in init, enable use of reattached providers during plan-apply workflow (#38182) 2026-02-18 11:53:15 +00:00
version_test.go make copyrightfix 2026-02-17 13:56:34 +00:00