Skip to content

Commit

Permalink
Fix terrafmt errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jan 23, 2024
1 parent 4eed2ab commit 99bfcb3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions internal/service/codebuild/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3886,41 +3886,41 @@ resource "aws_codebuild_project" "test" {
func testAccProjectConfig_buildBatchConfigDelete(rName string, withBuildBatchConfig bool) string {
template := `
resource "aws_codebuild_project" "test" {
name = %[1]q
service_role = aws_iam_role.test.arn
name = %[1]q
service_role = aws_iam_role.test.arn
artifacts {
type = "NO_ARTIFACTS"
}
artifacts {
type = "NO_ARTIFACTS"
}
environment {
compute_type = "BUILD_GENERAL1_SMALL"
image = "2"
type = "LINUX_CONTAINER"
}
environment {
compute_type = "BUILD_GENERAL1_SMALL"
image = "2"
type = "LINUX_CONTAINER"
}
source {
location = "https://github.com/hashicorp/packer.git"
type = "GITHUB"
}
source {
location = "https://github.com/hashicorp/packer.git"
type = "GITHUB"
}
%[2]s
}
`

buildBatchConfig := `
build_batch_config {
combine_artifacts = true
combine_artifacts = true
restrictions {
compute_types_allowed = []
maximum_builds_allowed = 10
}
restrictions {
compute_types_allowed = []
maximum_builds_allowed = 10
}
service_role = aws_iam_role.test.arn
timeout_in_mins = 480
service_role = aws_iam_role.test.arn
timeout_in_mins = 480
}
`
`

if withBuildBatchConfig {
return acctest.ConfigCompose(testAccProjectConfig_baseServiceRole(rName), fmt.Sprintf(template, rName, buildBatchConfig))
Expand Down

0 comments on commit 99bfcb3

Please sign in to comment.