diff --git a/pkg/tf2pulumi/convert/testdata/mappings/renames.json b/pkg/tf2pulumi/convert/testdata/mappings/renames.json index 6eb346ca87..e6497cca89 100644 --- a/pkg/tf2pulumi/convert/testdata/mappings/renames.json +++ b/pkg/tf2pulumi/convert/testdata/mappings/renames.json @@ -82,9 +82,11 @@ }, "a_resource": { "name": "theResource", - "fields": { - "inner_string": { - "name": "theInnerString" + "element": { + "fields": { + "inner_string": { + "name": "theInnerString" + } } } }, diff --git a/pkg/tf2pulumi/convert/testdata/renames/pcl/main.pp b/pkg/tf2pulumi/convert/testdata/renames/pcl/main.pp index 8760616128..97bd91e8d8 100644 --- a/pkg/tf2pulumi/convert/testdata/renames/pcl/main.pp +++ b/pkg/tf2pulumi/convert/testdata/renames/pcl/main.pp @@ -1,7 +1,7 @@ resource aResource "renames:index/index:resource" { theNumber = 1 theResource = { - theInnerString = "hello" + innerString = "hello" } } output someOutputA { @@ -34,6 +34,6 @@ } theNumber = 1 theResource = { - theInnerString = "hello" + innerString = "hello" } } diff --git a/pkg/tf2pulumi/convert/testdata/schemas/renames.json b/pkg/tf2pulumi/convert/testdata/schemas/renames.json index 7edac8fa32..d600f0ae26 100644 --- a/pkg/tf2pulumi/convert/testdata/schemas/renames.json +++ b/pkg/tf2pulumi/convert/testdata/schemas/renames.json @@ -28,7 +28,7 @@ }, "renames:index/resourceTheResource:resourceTheResource": { "properties": { - "innerString": { + "theInnerString": { "type": "string" } },