configs: update values file invalid syntax test for new HCL behavior
The error-handling behavior of the HCL parser was improved, which causes the number of diagnostics and the diagnostics messages to be different in cases where a block-like introduction is given but without any following body.
This commit is contained in:
parent
59a49c6b3f
commit
7549ce15f0
|
@ -60,7 +60,7 @@ func TestParserLoadValuesFile(t *testing.T) {
|
|||
"invalid-syntax.tfvars": {
|
||||
"foo bar baz\n",
|
||||
map[string]cty.Value{},
|
||||
1, // attribute or block definition required
|
||||
2, // invalid block definition, and unexpected foo block (the latter due to parser recovery behavior)
|
||||
},
|
||||
"block.tfvars": {
|
||||
"foo = true\ninvalid {\n}\n",
|
||||
|
|
Loading…
Reference in New Issue