Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patilpankaj212 committed May 12, 2021
1 parent a2b7d5a commit 77b2ba2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pkg/iac-providers/terraform/v12/testdata/tfjson/config1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"id": "aws_instance.instance_playground",
"name": "instance_playground",
"module_name": "root",
"source": "config1.tf",
"line": 77,
"type": "aws_instance",
Expand Down Expand Up @@ -46,6 +47,7 @@
{
"id": "aws_internet_gateway.igw_playground",
"name": "igw_playground",
"module_name": "root",
"source": "config1.tf",
"line": 14,
"type": "aws_internet_gateway",
Expand All @@ -62,6 +64,7 @@
{
"id": "aws_key_pair.ec2key_playground",
"name": "ec2key_playground",
"module_name": "root",
"source": "config1.tf",
"line": 72,
"type": "aws_key_pair",
Expand All @@ -76,6 +79,7 @@
{
"id": "aws_route_table.rtb_public_playground",
"name": "rtb_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 30,
"type": "aws_route_table",
Expand All @@ -98,6 +102,7 @@
{
"id": "aws_route_table_association.rta_subnet_public_playground",
"name": "rta_subnet_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 41,
"type": "aws_route_table_association",
Expand All @@ -112,6 +117,7 @@
{
"id": "aws_security_group.sg_playground",
"name": "sg_playground",
"module_name": "root",
"source": "config1.tf",
"line": 46,
"type": "aws_security_group",
Expand Down Expand Up @@ -157,6 +163,7 @@
{
"id": "aws_subnet.subnet_public_playground",
"name": "subnet_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 21,
"type": "aws_subnet",
Expand All @@ -175,6 +182,7 @@
{
"id": "aws_vpc.vpc_playground",
"name": "vpc_playground",
"module_name": "root",
"source": "config1.tf",
"line": 5,
"type": "aws_vpc",
Expand All @@ -189,4 +197,4 @@
"skip_rules": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"id": "terraform_remote_state.remote",
"name": "remote",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 41,
"type": "terraform_remote_state",
Expand All @@ -22,6 +23,7 @@
{
"id": "type1.resource1",
"name": "resource1",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 1,
"type": "type1",
Expand All @@ -48,6 +50,7 @@
{
"id": "type2.resource2",
"name": "resource2",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 13,
"type": "type2",
Expand All @@ -70,6 +73,7 @@
{
"id": "type3.resource3",
"name": "resource3",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 26,
"type": "type3",
Expand Down
10 changes: 9 additions & 1 deletion pkg/iac-providers/terraform/v14/testdata/tfjson/config1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"id": "aws_instance.instance_playground",
"name": "instance_playground",
"module_name": "root",
"source": "config1.tf",
"line": 77,
"type": "aws_instance",
Expand Down Expand Up @@ -46,6 +47,7 @@
{
"id": "aws_internet_gateway.igw_playground",
"name": "igw_playground",
"module_name": "root",
"source": "config1.tf",
"line": 14,
"type": "aws_internet_gateway",
Expand All @@ -62,6 +64,7 @@
{
"id": "aws_key_pair.ec2key_playground",
"name": "ec2key_playground",
"module_name": "root",
"source": "config1.tf",
"line": 72,
"type": "aws_key_pair",
Expand All @@ -76,6 +79,7 @@
{
"id": "aws_route_table.rtb_public_playground",
"name": "rtb_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 30,
"type": "aws_route_table",
Expand All @@ -98,6 +102,7 @@
{
"id": "aws_route_table_association.rta_subnet_public_playground",
"name": "rta_subnet_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 41,
"type": "aws_route_table_association",
Expand All @@ -112,6 +117,7 @@
{
"id": "aws_security_group.sg_playground",
"name": "sg_playground",
"module_name": "root",
"source": "config1.tf",
"line": 46,
"type": "aws_security_group",
Expand Down Expand Up @@ -157,6 +163,7 @@
{
"id": "aws_subnet.subnet_public_playground",
"name": "subnet_public_playground",
"module_name": "root",
"source": "config1.tf",
"line": 21,
"type": "aws_subnet",
Expand All @@ -175,6 +182,7 @@
{
"id": "aws_vpc.vpc_playground",
"name": "vpc_playground",
"module_name": "root",
"source": "config1.tf",
"line": 5,
"type": "aws_vpc",
Expand All @@ -189,4 +197,4 @@
"skip_rules": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"id": "terraform_remote_state.remote",
"name": "remote",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 41,
"type": "terraform_remote_state",
Expand All @@ -22,6 +23,7 @@
{
"id": "type1.resource1",
"name": "resource1",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 1,
"type": "type1",
Expand All @@ -48,6 +50,7 @@
{
"id": "type2.resource2",
"name": "resource2",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 13,
"type": "type2",
Expand All @@ -70,6 +73,7 @@
{
"id": "type3.resource3",
"name": "resource3",
"module_name": "root",
"source": "dummyconfig.tf",
"line": 26,
"type": "type3",
Expand Down

0 comments on commit 77b2ba2

Please sign in to comment.