terraform/config/test-fixtures
Paul Hinze 3f72837f4b core: Make copies when creating destroy nodes
Fixes an interpolation race that was occurring when a tainted destroy
node and a primary destroy node both tried to interpolate a computed
count in their config. Since they were sharing a pointer to the _same_
config, depending on how the race played out one of them could catch the
config uninterpolated and would then throw a syntax error.

The `Copy()` tree implemented for this fix can probably be used
elsewhere - basically we should copy the config whenever we drop nodes
into the graph - but for now I'm just applying it to the place that
fixes this bug.

Fixes #4982 - Includes a test covering that race condition.
2016-02-09 09:25:16 -06:00
..
copy-basic core: Make copies when creating destroy nodes 2016-02-09 09:25:16 -06:00
count-int
count-string
count-var
dir-basic
dir-empty
dir-merge
dir-override
dir-temporary-files
import
interpolations
validate-bad-depends-on
validate-bad-multi-resource
validate-count-bad-context
validate-count-below-zero
validate-count-count-var
validate-count-int
validate-count-module-var
validate-count-not-int
validate-count-resource-var
validate-count-user-var
validate-count-var
validate-count-var-invalid
validate-count-zero
validate-depends-on-var
validate-dup-module
validate-dup-resource
validate-good
validate-module-name-bad
validate-module-source-var
validate-module-var-int
validate-module-var-map
validate-module-var-self
validate-output-bad-field
validate-output-missing-equals config: validation error when output is missing value field 2016-01-20 14:00:36 -06:00
validate-path-var
validate-path-var-invalid
validate-prov-conn-splat-other
validate-prov-conn-splat-self
validate-prov-splat-other
validate-prov-splat-self
validate-provider-multi
validate-provider-multi-good
validate-provider-multi-ref-bad
validate-provider-multi-ref-good
validate-resource-prov-self
validate-resource-self
validate-unknown-resource-var
validate-unknown-resource-var-output
validate-unknownthing
validate-unknownvar
validate-unknownvar-count
validate-var-default
validate-var-default-bad-type
validate-var-default-interpolate
validate-var-module
validate-var-module-invalid
validate-var-multi-exact-non-slice
validate-var-multi-func
validate-var-multi-non-slice
validate-var-multi-non-slice-provisioner
.gitattributes Add regression test for #4069 2015-12-01 13:37:18 -05:00
attributes.tf Add failing tests for JSON configuration parsing 2015-11-19 16:06:30 +02:00
attributes.tf.json Add failing tests for JSON configuration parsing 2015-11-19 16:06:30 +02:00
bad-variable-type.tf core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
bad_type.tf.nope
basic.tf core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
basic.tf.json core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
connection.tf
create-before-destroy.tf
empty.tf
escapedquotes.tf config: test covering escaped quotes syntax error 2015-11-19 12:11:42 -06:00
heredoc.tf config: test replicating #4079 2015-12-01 10:31:05 -06:00
ignore-changes.tf Adding ignore_changes lifecycle meta property 2015-10-14 16:34:27 -05:00
import.tf
lifecycle_cbd_typo.tf config: validate lifecycle keys [GH-4413] 2016-01-19 11:28:45 -08:00
modules.tf
prevent-destroy-string.tf
provisioners.tf
resource-arity-mistake.tf config: friendlier error message on resource arity mismatch 2015-12-09 18:05:49 -06:00
variable-mismatched-type.tf core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
variables.tf
windows-line-endings.tf Add regression test for #4069 2015-12-01 13:37:18 -05:00