terraform/states/statefile
Kristin Laemmert c4873778c8 Mildwonkey/tests (#24548)
* helper/resource: remove provider resolver test
* repl tests passing
* helper/resource: add some extra shimming to ShimLegacyState

Some of the tests in helper/resource have to shim between legacy and
modern states. Terraform expects modern states to have the Provider set
for each resource (and not be a legacy provider). This PR adds a wrapper
around terraform.ShimLegacyState which iterates through the resources
in the state (after the shim) and adds the provider FQN.
2020-04-06 09:24:23 -07:00
..
testdata/roundtrip states/version3 upgrade: revert provider FQN changes (#24504) 2020-04-06 09:24:23 -07:00
diagnostics.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
doc.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
file.go states/statefile: Tolerate nil state in statefile.New 2018-10-16 19:14:11 -07:00
marshal_equal.go command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
read.go command: Fix TestInit_getProvider 2018-11-12 15:19:55 -08:00
roundtrip_test.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
version0.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
version1.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
version1_upgrade.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
version2.go states/statefile: decode backend hash as uint64 2019-05-28 23:59:36 +09:00
version2_upgrade.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
version3.go statefile: New package for loading and saving state files 2018-10-16 18:49:20 -07:00
version3_upgrade.go Mildwonkey/tests (#24548) 2020-04-06 09:24:23 -07:00
version4.go use addrs.ConfigResource for dependency tracking 2020-03-25 17:03:06 -04:00
write.go always write the current state terraform_version 2019-05-21 18:55:53 -04:00