terraform/states/statefile/testdata/roundtrip
Kristin Laemmert 47a16b0937
addrs: embed Provider in AbsProviderConfig instead of Type
a large refactor to addrs.AbsProviderConfig, embedding the addrs.Provider instead of a Type string. I've added and updated tests, added some Legacy functions to support older state formats and shims, and added a normalization step when reading v4 (current) state files (not the added tests under states/statefile/roundtrip which work with both current and legacy-style AbsProviderConfig strings).

The remaining 'fixme' and 'todo' comments are mostly going to be addressed in a subsequent PR and involve looking up a given local provider config's FQN. This is fine for now as we are only working with default assumption.
2020-02-13 15:32:58 -05:00
..
v1-simple.in.tfstate
v1-simple.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v3-bigint.in.tfstate states/statefile: decode backend hash as uint64 2019-05-28 23:59:36 +09:00
v3-bigint.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v3-grabbag.in.tfstate
v3-grabbag.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v3-invalid-depends.in.tfstate states/statefile: tolerate and ignore invalid depends_on in version 3 2019-11-21 09:18:49 -08:00
v3-invalid-depends.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v3-simple.in.tfstate states/statefile: upgrade legacy dependency syntax (#21159) 2019-04-30 14:34:01 -04:00
v3-simple.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-foreach.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-foreach.out.tfstate read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
v4-legacy-foreach.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-legacy-foreach.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-legacy-modules.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-legacy-modules.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-legacy-simple.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-legacy-simple.out.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-modules.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-modules.out.tfstate read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
v4-simple.in.tfstate addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
v4-simple.out.tfstate