terraform/internal/configs/testdata/invalid-files
Kristin Laemmert 3acb5e2841
configs: add decodeMovedBlock behind a locked gate. (#28973)
This PR adds decoding for the upcoming "moved" blocks in configuration. This code is gated behind an experiment called EverythingIsAPlan, but the experiment is not registered as an active experiment, so it will never run (there is a test in place which will fail if the experiment is ever registered).

This also adds a new function to the Targetable interface, AddrType, to simplifying comparing two addrs.Targetable.

There is some validation missing still: this does not (yet) descend into resources to see if the actual resource types are the same (I've put this off in part because we will eventually need the provider schema to verify aliased resources, so I suspect this validation will have to happen later on).
2021-06-21 10:53:16 -04:00
..
data-count-and-for_each.tf
data-invalid-provider-reference.tf
data-reserved-lifecycle.tf
data-reserved-locals.tf
data-resource-lifecycle.tf
everything-is-a-plan.tf
interp-in-data-label.tf
interp-in-rsrc-label.tf
json-as-native-syntax.tf
module-calls.tf
native-syntax-as-json.tf.json
provider-localname-normalization.tf
provider-reserved.tf
provider-syntax.tf
resource-count-and-for_each.tf
resource-invalid-provider-reference.tf
resource-lifecycle-badbool.tf
resource-name-invalid.tf
resource-reserved-locals.tf
resources-ignorechanges-all-legacymix.tf
unexpected-attr.tf
unexpected-block.tf
variable-bad-default.tf
variable-bad-sensitive.tf
variable-type-unknown.tf
variable-validation-bad-msg.tf
variable-validation-condition-badref.tf
variable-validation-condition-noref.tf
version-variable.tf
zerolen.tf.json