From d90eb2d88e4d1ca74698f5deeff9b4bed33ca25b Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Tue, 1 Dec 2015 10:31:05 -0600 Subject: [PATCH] config: test replicating #4079 Should help cover terraform against regression once https://github.com/hashicorp/hcl/pull/70 lands. --- config/loader_test.go | 5 +++++ config/test-fixtures/heredoc.tf | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/config/loader_test.go b/config/loader_test.go index 19745adaf6..0ab1234607 100644 --- a/config/loader_test.go +++ b/config/loader_test.go @@ -685,6 +685,11 @@ aws_iam_policy[policy] (x1) name path policy +aws_instance[heredocwithnumbers] (x1) + ami + provisioners + local-exec + command aws_instance[test] (x1) ami provisioners diff --git a/config/test-fixtures/heredoc.tf b/config/test-fixtures/heredoc.tf index 323d1d4e06..c43fd08106 100644 --- a/config/test-fixtures/heredoc.tf +++ b/config/test-fixtures/heredoc.tf @@ -37,3 +37,15 @@ EOT ] } } + +resource "aws_instance" "heredocwithnumbers" { + ami = "foo" + + provisioner "local-exec" { + command = <