From ff98f4034a77b3485d19426c79cf804972222161 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Thu, 30 Mar 2023 15:44:54 +0200 Subject: [PATCH] chore: fix testcase --- .../__snapshots__/resource-meta-properties.test.ts.snap | 4 ++++ .../@cdktf/hcl2cdk/test/resource-meta-properties.test.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/packages/@cdktf/hcl2cdk/test/__snapshots__/resource-meta-properties.test.ts.snap b/packages/@cdktf/hcl2cdk/test/__snapshots__/resource-meta-properties.test.ts.snap index a62c453bb8..46d960457e 100644 --- a/packages/@cdktf/hcl2cdk/test/__snapshots__/resource-meta-properties.test.ts.snap +++ b/packages/@cdktf/hcl2cdk/test/__snapshots__/resource-meta-properties.test.ts.snap @@ -235,6 +235,10 @@ class MyConvertedCode extends cdktf.TerraformStack { new aws.provider.AwsProvider(this, \\"aws\\", { region: \\"us-east-1\\", }); + const awsInstanceWeb = new aws.instance.Instance(this, \\"web\\", { + ami: \\"ami-a1b2c3d4\\", + instanceType: \\"t2.micro\\", + }); new aws.instance.Instance(this, \\"example\\", { ami: \\"ami-a1b2c3d4\\", iamInstanceProfile: \\"aws_iam_instance_profile\\", diff --git a/packages/@cdktf/hcl2cdk/test/resource-meta-properties.test.ts b/packages/@cdktf/hcl2cdk/test/resource-meta-properties.test.ts index a176fa8108..a827b22649 100644 --- a/packages/@cdktf/hcl2cdk/test/resource-meta-properties.test.ts +++ b/packages/@cdktf/hcl2cdk/test/resource-meta-properties.test.ts @@ -246,6 +246,12 @@ describe("meta-properties", () => { provider "aws" { region = "us-east-1" } + + resource "aws_instance" "web" { + ami = "ami-a1b2c3d4" + instance_type = "t2.micro" + } + resource "aws_instance" "example" { ami = "ami-a1b2c3d4" instance_type = "t2.micro"