Add test for Validate crash

Crash during Validate walk with nested variable default.
pull/12507/head
James Bardin 9 years ago
parent 88cdae91e6
commit 3c41a7ca1e

@ -201,6 +201,12 @@ func TestConfigValidate_table(t *testing.T) {
true,
"cannot contain interp",
},
{
"nested types in variable default",
"validate-var-nested",
true,
"ERROR",
},
}
for i, tc := range cases {

@ -0,0 +1,6 @@
variable "foo" {
default = [["foo", "bar"]]
}
variable "bar" {
default = [{foo = "bar"}]
}
Loading…
Cancel
Save