terraform/command/testdata/show-json
Kristin Laemmert 7f1b0a4681
command/jsonstate: fix inconsistency with resource address (#24256)
* command/jsonstate: fix inconsistency with resource address

Resource addresses in state output were not including index for
instances created with for_each or count, while the index was appearing
in the plan output. This PR fixes that inconsistency, adds tests, and
updates the existing tests.

Fixes #24110

* add tests showing expected prior state resource addressing
* added example of show json state output with modules
2020-03-05 08:13:45 -05:00
..
basic-create Standardise directory name for test data 2019-06-30 10:16:15 +02:00
basic-delete addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
basic-update addrs: embed Provider in AbsProviderConfig instead of Type 2020-02-13 15:32:58 -05:00
modules Module Expansion: Part 2 (#24154) 2020-02-24 17:42:32 -05:00
multi-resource-update command/jsonstate: fix inconsistency with resource address (#24256) 2020-03-05 08:13:45 -05:00
nested-module-error fix show-json test to expect error from nested mod 2019-07-16 21:30:04 -04:00
nested-modules command/jsonplan: fix bug with nested modules output (#23092) 2019-10-17 11:33:04 -04:00