configs/configupgrade: Test for removing commas between block arguments

The comma-separated syntax is now reserved only for object constructor
expressions in attribute values, so the upgrade tool rewrites block
arguments to be newline-separated instead.

This was already working but we didn't have an explicit test for it until
now.
This commit is contained in:
Martin Atkins 2019-02-20 15:52:48 -08:00
parent 54bb0b1e25
commit 085ac6d8ca
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,7 @@
locals {
foo = "bar", baz = "boop"
}
resource "test_instance" "foo" {
image = "b", type = "d"
}

View File

@ -0,0 +1,9 @@
locals {
foo = "bar"
baz = "boop"
}
resource "test_instance" "foo" {
image = "b"
type = "d"
}

View File

@ -0,0 +1,3 @@
terraform {
required_version = ">= 0.12"
}