terraform/command/testdata/show-json
Alisdair McDiarmid 5e30d58dc2 command/jsonplan: Add output change sensitivity
When an output value changes, we have a small amount of information we
can convey about its sensitivity. If either the output was previously
marked sensitive, or is currently marked sensitive in the config, this
is tracked in the output change data.

This commit encodes this boolean in the change struct's
`before_sensitive` and `after_sensitive` fields, in the a way which
matches resource value sensitivity. Since we have so little information
to work with, these two values will always be booleans, and always equal
each.

This is logically consistent with how else we want to obscure sensitive
data: a changing output which was or is marked sensitive should not have
the value shown in human-readable output.
2021-03-26 19:26:11 -04:00
..
basic-create command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
basic-delete command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
basic-update command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
module-depends-on command/jsonplan: Add sensitive value mapping data 2021-03-26 19:26:10 -04:00
modules command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
multi-resource-update command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04: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: Add sensitive value mapping data 2021-03-26 19:26:10 -04:00
provider-version command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
provider-version-no-config command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
sensitive-values command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00