Add failing test for GH-10155

Overriding a map variable with the incorrect type panics
This commit is contained in:
James Bardin 2016-11-16 18:20:59 -05:00
parent 81125f6aeb
commit 8f6811da0c
1 changed files with 12 additions and 0 deletions

View File

@ -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 {