terraform: test for referencetransform for modules

This commit is contained in:
Mitchell Hashimoto 2016-09-15 18:31:13 -07:00
parent 994f5ce773
commit 21888b1227
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 17 additions and 1 deletions

View File

@ -50,6 +50,15 @@ func TestApplyGraphBuilder(t *testing.T) {
},
},
},
"aws_instance.other": &InstanceDiff{
Attributes: map[string]*ResourceAttrDiff{
"name": &ResourceAttrDiff{
Old: "",
New: "foo",
},
},
},
},
},
},
@ -87,11 +96,14 @@ aws_instance.other
module.child.aws_instance.create
module.child.provider.aws
provisioner.exec
module.child.aws_instance.other
module.child.aws_instance.create
module.child.provider.aws
module.child.provider.aws
provider.aws
provider.aws
provisioner.exec
root
aws_instance.other
module.child.aws_instance.create
module.child.aws_instance.other
`

View File

@ -1,3 +1,7 @@
resource "aws_instance" "create" {
provisioner "exec" {}
}
resource "aws_instance" "other" {
value = "${aws_instance.create.id}"
}