From 7f5f8d300d01edf0865eb6b702e7836b1cda6afa Mon Sep 17 00:00:00 2001 From: James Nugent Date: Wed, 25 Nov 2015 20:50:16 +0200 Subject: [PATCH] Add failing test replicating #4065 --- config/loader_test.go | 5 +++++ config/test-fixtures/heredoc.tf | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/config/loader_test.go b/config/loader_test.go index 556cdc245be5..19745adaf6bb 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[test] (x1) + ami + provisioners + remote-exec + inline ` const escapedquotesResourcesStr = ` diff --git a/config/test-fixtures/heredoc.tf b/config/test-fixtures/heredoc.tf index b765a58f0c32..323d1d4e06c4 100644 --- a/config/test-fixtures/heredoc.tf +++ b/config/test-fixtures/heredoc.tf @@ -22,3 +22,18 @@ resource "aws_iam_policy" "policy" { } EOF } + +resource "aws_instance" "test" { + ami = "foo" + + provisioner "remote-exec" { + inline = [ +<