From 8f6811da0c82ab45035b2e54817045b74b140949 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 16 Nov 2016 18:20:59 -0500 Subject: [PATCH] Add failing test for GH-10155 Overriding a map variable with the incorrect type panics --- terraform/variables_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terraform/variables_test.go b/terraform/variables_test.go index 2a97f4edb..c29104e92 100644 --- a/terraform/variables_test.go +++ b/terraform/variables_test.go @@ -136,6 +136,18 @@ func TestVariables(t *testing.T) { "b": "1", }, }, + + "override map with string": { + "vars-basic", + map[string]string{ + "TF_VAR_c": `{"foo" = "a", "bar" = "baz"}`, + }, + map[string]interface{}{ + "c": "bar", + }, + true, + nil, + }, } for name, tc := range cases {