terraform/backend/local
Martin Atkins 27abd9c6b8 command: Fix TestMetaBackend_localDoesNotDeleteLocal
The changes to how we handle setting the state path on the local backend
broke the heuristic we were using here for detecting migration from one
local backend to another with the same state path, which would by default
end up deleting the state altogether after migration.

We now use the StatePaths method to do this, which takes into account
both the default values and any settings that have been set.

Additionally this addresses a flaw in the old method which could
potentially have deleted all non-default workspace state files if the
"path" setting were changed without also changing the "workspace_dir"
setting. This new approach is conservative because it will preserve all
of the files if any one overlaps.
2018-11-19 09:02:35 -08:00
..
test-fixtures backend/local tests tests tests 2018-10-16 19:14:11 -07:00
backend.go command: Fix TestMetaBackend_localDoesNotDeleteLocal 2018-11-19 09:02:35 -08:00
backend_apply.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
backend_apply_test.go backend/local: test fixes 2018-10-16 19:14:11 -07:00
backend_local.go Updates after running `make fmt` with Go v1.11.1 2018-10-17 14:11:08 -07:00
backend_plan.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
backend_plan_test.go backend/local: Stub out remaining planfile todos with errors 2018-10-16 19:14:11 -07:00
backend_refresh.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
backend_refresh_test.go Make the test compile again 2018-10-19 15:29:14 +02:00
backend_test.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go command: Fix TestMetaBackend_configuredChangeCopy_multiToMulti 2018-11-19 09:02:35 -08:00
counthookaction_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
hook_count.go core: Handle forced-create_before_destroy during the plan walk 2018-10-16 19:14:11 -07:00
hook_count_action.go backend/local 2017-01-26 14:33:49 -08:00
hook_count_test.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
hook_state.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
hook_state_test.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
local_test.go backend/local 2017-01-26 14:33:49 -08:00
testing.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00