opentofu/internal/command/testdata
Christian Mesh 50d94e089f
Some checks are pending
build / Build for freebsd_386 (push) Waiting to run
build / Build for linux_386 (push) Waiting to run
build / Build for openbsd_386 (push) Waiting to run
build / Build for windows_386 (push) Waiting to run
build / Build for freebsd_amd64 (push) Waiting to run
build / Build for linux_amd64 (push) Waiting to run
build / Build for openbsd_amd64 (push) Waiting to run
build / Build for solaris_amd64 (push) Waiting to run
build / Build for windows_amd64 (push) Waiting to run
build / Build for freebsd_arm (push) Waiting to run
build / Build for linux_arm (push) Waiting to run
build / Build for linux_arm64 (push) Waiting to run
build / Build for darwin_amd64 (push) Waiting to run
build / Build for darwin_arm64 (push) Waiting to run
build / End-to-end Tests for linux_386 (push) Waiting to run
build / End-to-end Tests for windows_386 (push) Waiting to run
build / End-to-end Tests for darwin_amd64 (push) Waiting to run
build / End-to-end Tests for linux_amd64 (push) Waiting to run
build / End-to-end Tests for windows_amd64 (push) Waiting to run
Quick Checks / List files changed for pull request (push) Waiting to run
Quick Checks / Unit tests for linux_386 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for windows_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm (push) Blocked by required conditions
Quick Checks / Unit tests for darwin_arm64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm64 (push) Blocked by required conditions
Quick Checks / Race Tests (push) Blocked by required conditions
Quick Checks / End-to-end Tests (push) Blocked by required conditions
Quick Checks / Code Consistency Checks (push) Blocked by required conditions
Quick Checks / License Checks (push) Waiting to run
Website checks / List files changed for pull request (push) Waiting to run
Website checks / Build (push) Blocked by required conditions
Website checks / Test Installation Instructions (push) Blocked by required conditions
Remove legacy state formats
There are a variety of bugs that were discovered in
https://github.com/opentofu/opentofu/pull/4222 where the tests
did not handle "depend_on" correctly. This was especially broken
in the older state file format migration paths.

Given that we require people to migrate to at least TF1.0 before using
OpenTofu, this removes the legacy fallbacks that now use the standard
"unable to use this version's state file" message.

The only unrelated test was a migration of a v3 local-state file from an
old test.

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2026-06-04 11:03:31 -04:00
..
apply fix: remove elapsed_seconds check on the golden reference (#2565) 2025-03-06 09:03:46 -03:00
apply-config-invalid Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-destroy-targeted Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-error Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-excluded Add exclude flag support (#1900) 2024-11-05 10:16:00 -05:00
apply-input Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-input-partial Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-plan-conditional-sensitive add e2e test to cover the panic case of unknown conditional with sensitive (#661) 2023-10-05 15:04:51 +03:00
apply-plan-no-module Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-replace Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-sensitive-output Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-shutdown Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-targeted Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply-tf-workspace feat: Add support for tofu.workspace which will be resolved in the same way as terraform.workspace (#1305) 2024-08-01 08:14:34 -04:00
apply-tofu-workspace feat: Add support for tofu.workspace which will be resolved in the same way as terraform.workspace (#1305) 2024-08-01 08:14:34 -04:00
apply-vars Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
apply_cbd_with_refresh_false fix: unused config's create_before_destroy on resource change with no refresh (#2248) 2024-12-20 10:47:00 +02:00
backend-change Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-multi-default-to-single Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-multi-to-multi Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-multi-to-no-default-with-default Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-multi-to-no-default-without-default Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-multi-to-single Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-change-single-to-single Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-changed-with-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-from-state Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-inmem-locked Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-new Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-new-interp Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-new-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-new-migrate Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-new-migrate-existing Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-backend-empty Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-backend-empty-config Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-backend-match Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-backend-mismatch Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-legacy-data Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-local Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-local-match Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-local-mismatch-lineage Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-plan-local-newer Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-unchanged Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-unchanged-vars Fix regression of backend reinit detection when backend schema has required arguments (#2119) 2024-11-04 14:23:32 -05:00
backend-unchanged-with-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-unset Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
backend-unset-with-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
command-check-required-version configs: New-style core version constraints, etc 2026-03-18 09:09:50 -07:00
console-multiline-vars Adds multi line support to console (#1875) 2024-08-02 10:21:44 +01:00
empty Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
fmt Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
get Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
graph Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-keyed-module CLI import target validation for incorrect for_each keys (#3106) 2025-09-02 13:21:19 +04:00
import-keyed-module-keyed-resource CLI import target validation for incorrect for_each keys (#3106) 2025-09-02 13:21:19 +04:00
import-missing-resource-config Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-module-input-variable Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-module-var-file Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-non-existent-key CLI import target validation for incorrect for_each keys (#3106) 2025-09-02 13:21:19 +04:00
import-provider Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-aliased Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-datasource Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-implicit Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-invalid Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-remote-state Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-var Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-var-default Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
import-provider-var-file Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend-config-file Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend-config-file-change Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend-config-file-change-migrate-existing Remove legacy state formats 2026-06-04 11:03:31 -04:00
init-backend-config-kv Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend-empty Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-backend-http Error if backup or backup-out options are used without the state option on non-local backends for the state mv command 2021-11-09 13:09:36 -06:00
init-backend-migrate-while-locked cli: Restore -lock and -lock-timeout init flags 2021-10-19 09:32:30 -04:00
init-backend-selected-workspace-doesnt-exist-multi command: Auto-select single workspace if necessary 2021-09-22 16:03:11 -05:00
init-backend-selected-workspace-doesnt-exist-single command: Auto-select single workspace if necessary 2021-09-22 16:03:11 -05:00
init-check-required-version configs: New-style core version constraints, etc 2026-03-18 09:09:50 -07:00
init-check-required-version-first configs: New-style core version constraints, etc 2026-03-18 09:09:50 -07:00
init-check-required-version-first-module configs: New-style core version constraints, etc 2026-03-18 09:09:50 -07:00
init-cloud-simple command/init: Be explicit that some options are not relevant for Cloud 2021-11-17 14:20:44 -08:00
init-encryption-available Skip reading encryption keys on tofu init with -backend=false flag set (#2293) 2024-12-20 10:45:12 +02:00
init-encryption-with-state fix: skip local encrypted state read when init runs with -backend=false (#4076) (#4077) 2026-05-14 08:52:40 -03:00
init-get Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-get-provider-detected-duplicate Add a warning when multiple likely forks of a provider are detected (#1009) 2023-12-14 12:21:16 -05:00
init-get-provider-detected-legacy Another batch of minor typos (#1953) 2024-09-09 07:51:39 -04:00
init-get-provider-invalid-package Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-get-provider-legacy-from-state Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-get-provider-source Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-get-providers Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-internal Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-internal-invalid Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-legacy-rc Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-module-early-eval command: Improve reliability of module install cancel tests 2025-04-18 09:11:22 -07:00
init-module-variable-source Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
init-module-variable-source-multiple Adds prompt for missing static variables (#2047) 2024-10-07 18:30:42 +01:00
init-module-variable-version Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
init-provider-lock-file Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-provider-lock-file-readonly-add Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-provider-now-unused Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
init-providers-lock Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-required-providers Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
init-syntax-invalid-backend-attribute-invalid Make config errors more important during init operations (#33628) 2023-08-09 11:19:00 +02:00
init-syntax-invalid-extra-label Fix repetitive diagnosis output in init response (#1890) 2024-09-05 07:36:18 -04:00
init-syntax-invalid-no-backend add tests for init syntax error handling 2023-02-15 21:01:27 -08:00
init-syntax-invalid-with-backend add tests for init syntax error handling 2023-02-15 21:01:27 -08:00
init-with-tests testing framework: change test file extension to .tftest.hcl (#33553) 2023-07-20 16:57:05 +02:00
init-with-tests-with-module testing framework: change test file extension to .tftest.hcl (#33553) 2023-07-20 16:57:05 +02:00
init-with-tests-with-provider Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
inmem-backend Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
login-oauth-server various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
login-tfe-server command/login: Filter C0 control characters in HCP Terraform motd 2025-11-10 09:49:35 -08:00
modules Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
parallelism Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan Add count of forgotten resources to plan and apply outputs. (#2010) 2025-02-24 14:53:32 -05:00
plan-emptydiff Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-existing-state Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
plan-fail-condition add command test for errored plan 2022-12-14 16:23:31 -05:00
plan-import-config-gen Rename multiple packages to OpenTofu (depsfile, genconfig, getmodules) (#499) 2023-09-20 17:05:24 +03:00
plan-invalid Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-invalid-reference-try jsonformat: Tolerate incorrect paths in plan relevant_attributes 2025-07-03 08:50:12 -07:00
plan-no-test-vars test: ensure test vars are not used in tf plan (#2128) 2024-11-12 17:23:54 +02:00
plan-out-backend Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-out-backend-legacy Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-provider-input terraform: use hcl.MergeBodies instead of configs.MergeBodies for pro… (#29000) 2021-06-25 08:48:47 -04:00
plan-replace Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-sensitive-output Add -show-sensitive flag to tofu plan, apply, state-show and output commands (#1554) 2024-07-22 10:58:57 +01:00
plan-vars Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan-vars-unset Adds prompt for missing static variables (#2047) 2024-10-07 18:30:42 +01:00
providers Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
providers-lock Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
providers-schema Adds provider function to tofu scheme/metadata commands (#1753) 2024-07-01 16:41:27 +01:00
push Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-backend-new Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-input Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-input-partial Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-no-remote Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-no-upload Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
push-tfvars Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh-empty Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh-output Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh-targeted Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh-unset-var Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
refresh-var Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
show Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
show-config-module command: tofu show -config (#2820) 2025-06-02 10:15:46 -07:00
show-config-single-module tofu show: -module=DIR mode, for showing just a single module 2025-07-10 13:18:26 -07:00
show-corrupt-statefile command: fix panic on show when state file is invalid or unavailable (#31444) 2022-07-15 17:31:56 +01:00
show-json jsonconfig: Additional details about input variables 2025-07-11 09:25:30 -07:00
show-json-identity Store BeforeIdentity and AfterIdentity and display it in the plan json output (#3779) 2026-04-01 10:46:38 +01:00
show-json-sensitive Improve comparison of sensitive marks on resources, and propagate the sensitive_attributes correctly (#1640) 2024-07-09 08:42:02 -04:00
show-json-state Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
skip-destroy Retain resource instances with a new lifecycle argument - destroy (#3409) 2025-12-04 18:49:57 +04:00
state-list-backend-custom Use registry.opentofu.org as the default registry (#379) 2023-10-03 10:49:38 +03:00
state-list-backend-default Use registry.opentofu.org as the default registry (#379) 2023-10-03 10:49:38 +03:00
state-list-nested-modules Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
state-pull-backend Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
state-push-bad-lineage Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
state-push-good statemgr: pretty-print local backend state files for readable diffs (#3922) 2026-04-06 07:25:03 -04:00
state-push-replace-match statemgr: pretty-print local backend state files for readable diffs (#3922) 2026-04-06 07:25:03 -04:00
state-push-serial-newer Use registry.opentofu.org as the default registry (#379) 2023-10-03 10:49:38 +03:00
state-push-serial-older statemgr: pretty-print local backend state files for readable diffs (#3922) 2026-04-06 07:25:03 -04:00
test Fix test crash when using deprecated outputs in the root module (#3249) 2025-09-05 14:41:32 -04:00
tftest-fmt test framework: add support for testing files to fmt command (#33576) 2023-07-26 10:38:47 +02:00
validate-invalid Import block ID validation (#2973) 2025-07-17 22:54:34 +04:00
validate-valid Fix import validation with resource reference (unknown value) (#3513) 2025-11-19 09:58:35 -05:00
variables Remove GatherVariables methods (#3962) 2026-03-31 14:22:31 +03:00
.gitattributes fix: TestPlan_generatedConfigPath on Windows by standardizing line breaks (#3274) 2025-09-16 16:11:52 -03:00
empty-file Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
statelocker.go Adapt statelocker usage to Windows (#3206) 2025-09-06 10:47:17 -03:00