terraform/command/testdata
Martin Atkins 3c8a4e6e05 command+backend/local: -refresh-only and drift detection
This is a light revamp of our plan output to make use of Terraform core's
new ability to report both the previous run state and the refreshed state,
allowing us to explicitly report changes made outside of Terraform.

Because whether a plan has "changes" or not is no longer such a
straightforward matter, this now merges views.Operation.Plan with
views.Operation.PlanNoChanges to produce a single function that knows how
to report all of the various permutations. This was also an opportunity
to fill some holes in our previous logic which caused it to produce some
confusing messages, including a new tailored message for when
"terraform destroy" detects that nothing needs to be destroyed.

This also allows users to request the refresh-only planning mode using a
new -refresh-only command line option. In that case, Terraform _only_
performs drift detection, and so applying a refresh-only plan only
involves writing a new state snapshot, without changing any real
infrastructure objects.
2021-05-13 09:05:06 -07:00
..
apply command+backend/local: -refresh-only and drift detection 2021-05-13 09:05:06 -07:00
apply-config-invalid
apply-destroy-targeted cli: Improve error for invalid -target flags 2021-02-08 13:48:04 -05:00
apply-error Standardise directory name for test data 2019-06-30 10:16:15 +02:00
apply-input
apply-input-partial
apply-plan-no-module
apply-replace command: New -replace=... planning option 2021-05-03 15:43:23 -07:00
apply-sensitive-output
apply-shutdown
apply-targeted cli: Improve error for invalid -target flags 2021-02-08 13:48:04 -05:00
apply-terraform-env
apply-vars fix command tests 2020-08-07 14:13:57 -04:00
backend-change refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-multi-default-to-single refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-multi-to-multi refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-multi-to-no-default-with-default refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-multi-to-no-default-without-default refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-multi-to-single refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-change-single-to-single refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-changed-with-legacy refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-from-state
backend-inmem-locked
backend-new
backend-new-interp
backend-new-legacy refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-new-migrate refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-new-migrate-existing refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-backend-empty
backend-plan-backend-empty-config refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-backend-match refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-backend-mismatch refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-legacy
backend-plan-legacy-data refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-local
backend-plan-local-match refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-local-mismatch-lineage refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-plan-local-newer refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-unchanged refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-unchanged-with-legacy refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-unset refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend-unset-with-legacy refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
empty
fmt cli: Fix fmt output for multi-line value exprs 2021-03-25 15:40:54 -04:00
get
graph Standardise directory name for test data 2019-06-30 10:16:15 +02:00
import-missing-resource-config
import-module-input-variable terraform: Eval module call arguments for import 2020-08-17 17:14:12 -04:00
import-module-var-file reproduction test 2020-06-12 15:39:55 -04:00
import-provider
import-provider-aliased
import-provider-datasource
import-provider-implicit
import-provider-invalid
import-provider-remote-state
import-provider-var
import-provider-var-default
import-provider-var-file
init Standardise directory name for test data 2019-06-30 10:16:15 +02:00
init-backend
init-backend-config-file command: Fix backend config override validation 2020-08-21 16:21:13 -04:00
init-backend-config-file-change
init-backend-config-kv
init-backend-empty
init-check-required-version terraform: Fix required version constraint diags 2020-08-18 09:35:32 -04:00
init-get
init-get-provider-detected-legacy command/init: Improve diags for legacy providers 2020-06-12 09:57:01 -04:00
init-get-provider-invalid-package command/init: Display provider validation errors 2020-07-07 15:20:20 -04:00
init-get-provider-legacy-from-state command: Better in-house provider install errors 2020-09-01 14:02:19 -04:00
init-get-provider-source
init-get-providers vendor: go get github.com/apparentlymart/go-versions@v1.0.0 2020-06-12 08:45:14 -07:00
init-internal
init-internal-invalid
init-legacy-provider-cache command: new cache directory .terraform/providers for providers 2020-10-14 07:53:41 -07:00
init-legacy-rc
init-provider-lock-file
init-provider-lock-file-readonly-add command/init: Add a new flag `-lockfile=readonly` (#27630) 2021-03-09 11:12:00 -05:00
init-providers-lock
init-required-providers
inmem-backend
login-oauth-server
login-tfe-server Add customized login success output for TFC/E 2021-04-21 21:23:42 -05:00
modules
parallelism
plan
plan-emptydiff
plan-invalid
plan-out-backend
plan-out-backend-legacy
plan-replace command: New -replace=... planning option 2021-05-03 15:43:23 -07:00
plan-vars
providers command/providers: Show provider requirements tree 2020-06-09 14:21:53 -04:00
providers-schema command/jsonprovider: bump format version (#28115) 2021-03-22 11:45:36 -04:00
push
push-backend-new
push-input
push-input-partial
push-no-remote
push-no-upload
push-tfvars
refresh
refresh-empty
refresh-output
refresh-targeted cli: Improve error for invalid -target flags 2021-02-08 13:48:04 -05:00
refresh-unset-var
refresh-var
show
show-json command/jsonplan: Add replace_paths 2021-05-04 16:51:51 -04:00
show-json-sensitive core: Add sensitive provider attrs to JSON plan 2021-04-27 10:29:34 -04:00
show-json-state Unmark values before showing in JSON 2020-10-28 15:30:04 -04:00
state-list-backend-custom
state-list-backend-default
state-list-nested-modules command/state list: list resources in nested and expanded modules (#27268) 2020-12-14 11:07:15 -05:00
state-pull-backend
state-push-bad-lineage refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
state-push-good
state-push-replace-match
state-push-serial-newer
state-push-serial-older
taint-check-required-version command: Taint should respect required_version 2020-09-22 17:33:09 -04:00
test-fails command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
test-passes command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
validate-invalid fixed configloader doesn't add unnecessary diags 2021-05-07 12:28:09 -04:00
validate-valid cli: Add format version to validate -json output 2021-03-16 09:46:36 -04:00
variables Remove sensitive_variables experiment 2020-10-08 11:22:20 -04:00
empty-file
statelocker.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00