Skip to content

Commit

Permalink
Remove extra whitespace with HEREDOCs
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Aug 18, 2020
1 parent 768abde commit 1c1176a
Show file tree
Hide file tree
Showing 106 changed files with 0 additions and 501 deletions.
3 changes: 0 additions & 3 deletions aws/resource_aws_batch_compute_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ resource "aws_iam_role" "ecs_instance_role" {
]
}
EOF
}
resource "aws_iam_role_policy_attachment" "ecs_instance_role" {
Expand Down Expand Up @@ -655,7 +654,6 @@ resource "aws_iam_role" "aws_batch_service_role" {
]
}
EOF
}
resource "aws_iam_role_policy_attachment" "aws_batch_service_role" {
Expand All @@ -682,7 +680,6 @@ resource "aws_iam_role" "aws_ec2_spot_fleet_role" {
]
}
EOF
}
resource "aws_iam_role_policy_attachment" "aws_ec2_spot_fleet_role" {
Expand Down
1 change: 0 additions & 1 deletion aws/resource_aws_cloudformation_stack_set_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ Outputs:
TestVpcID:
Value: !Ref TestVpc
TEMPLATE
}
`, rName)
}
Expand Down
15 changes: 0 additions & 15 deletions aws/resource_aws_cloudformation_stack_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName))
}
Expand Down Expand Up @@ -918,7 +917,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName))
}
Expand Down Expand Up @@ -956,7 +954,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName), description)
}
Expand Down Expand Up @@ -994,7 +991,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName), executionRoleName)
}
Expand Down Expand Up @@ -1031,7 +1027,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName))
}
Expand Down Expand Up @@ -1072,7 +1067,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyParameters1(rName), value1)
}
Expand Down Expand Up @@ -1114,7 +1108,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyParameters2(rName), value1, value2)
}
Expand Down Expand Up @@ -1151,7 +1144,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyParametersDefault1(rName))
}
Expand Down Expand Up @@ -1192,7 +1184,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyParametersDefault1(rName), value1)
}
Expand Down Expand Up @@ -1233,7 +1224,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyParametersNoEcho1(rName), value1)
}
Expand Down Expand Up @@ -1274,7 +1264,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName), value1)
}
Expand Down Expand Up @@ -1316,7 +1305,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, testAccAWSCloudFormationStackSetTemplateBodyVpc(rName), value1, value2)
}
Expand Down Expand Up @@ -1353,7 +1341,6 @@ resource "aws_cloudformation_stack_set" "test" {
template_body = <<TEMPLATE
%[2]s
TEMPLATE
}
`, rName, templateBody)
}
Expand Down Expand Up @@ -1394,7 +1381,6 @@ resource "aws_s3_bucket_object" "test" {
content = <<CONTENT
%[2]s
CONTENT
key = "%[1]s-template1.yml"
Expand Down Expand Up @@ -1444,7 +1430,6 @@ resource "aws_s3_bucket_object" "test" {
content = <<CONTENT
%[2]s
CONTENT
key = "%[1]s-template2.yml"
Expand Down
2 changes: 0 additions & 2 deletions aws/resource_aws_cloudformation_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ resource "aws_cloudformation_stack" "test" {
}
}
STACK
}
`, stackName)
}
Expand Down Expand Up @@ -516,7 +515,6 @@ Outputs:
Description: The VPC ID
Value: !Ref MyVPC
STACK
}
`, stackName)
}
Expand Down
21 changes: 0 additions & 21 deletions aws/resource_aws_cloudtrail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -750,7 +749,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -795,7 +793,6 @@ resource "aws_s3_bucket" "test" {
]
}
POLICY
}
resource "aws_cloudwatch_log_group" "test" {
Expand All @@ -820,7 +817,6 @@ resource "aws_iam_role" "test" {
]
}
POLICY
}
resource "aws_iam_role_policy" "test" {
Expand All @@ -843,7 +839,6 @@ resource "aws_iam_role_policy" "test" {
]
}
POLICY
}
`, randInt, randInt, randInt, randInt, randInt, randInt, randInt)
}
Expand Down Expand Up @@ -888,7 +883,6 @@ resource "aws_s3_bucket" "test" {
]
}
POLICY
}
resource "aws_cloudwatch_log_group" "test" {
Expand Down Expand Up @@ -917,7 +911,6 @@ resource "aws_iam_role" "test" {
]
}
POLICY
}
resource "aws_iam_role_policy" "test" {
Expand All @@ -940,7 +933,6 @@ resource "aws_iam_role_policy" "test" {
]
}
POLICY
}
`, randInt, randInt, randInt, randInt, randInt, randInt, randInt, randInt)
}
Expand Down Expand Up @@ -983,7 +975,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1030,7 +1021,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1075,7 +1065,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1118,7 +1107,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand All @@ -1145,7 +1133,6 @@ resource "aws_kms_key" "foo" {
]
}
POLICY
}
resource "aws_cloudtrail" "foobar" {
Expand Down Expand Up @@ -1185,7 +1172,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1227,7 +1213,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`

Expand Down Expand Up @@ -1269,7 +1254,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1363,7 +1347,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
resource "aws_s3_bucket" "bar" {
Expand Down Expand Up @@ -1415,7 +1398,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
Expand Down Expand Up @@ -1493,7 +1475,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
resource "aws_s3_bucket" "bar" {
Expand All @@ -1519,7 +1500,6 @@ resource "aws_iam_role" "iam_for_lambda" {
]
}
EOF
}
resource "aws_lambda_function" "lambda_function_test" {
Expand Down Expand Up @@ -1569,7 +1549,6 @@ resource "aws_s3_bucket" "foo" {
]
}
POLICY
}
`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
}
2 changes: 0 additions & 2 deletions aws/resource_aws_cloudwatch_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ resource "aws_cloudwatch_dashboard" "test" {
dashboard_body = <<EOF
%s
EOF
}
`, rInt, basicWidget)
}
Expand All @@ -232,7 +231,6 @@ resource "aws_cloudwatch_dashboard" "test" {
dashboard_body = <<EOF
%s
EOF
}
`, rInt, updatedWidget)
}
Expand Down
3 changes: 0 additions & 3 deletions aws/resource_aws_cloudwatch_event_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,7 @@ resource "aws_cloudwatch_event_rule" "test" {
schedule_expression = "rate(1 hour)"
event_pattern = <<PATTERN
%s
PATTERN
}
`, name, pattern)
}
Expand Down Expand Up @@ -492,7 +490,6 @@ resource "aws_iam_role" "test" {
]
}
POLICY
}
resource "aws_cloudwatch_event_rule" "test" {
Expand Down
Loading

0 comments on commit 1c1176a

Please sign in to comment.