From 7160e32fac87ed596f46215fa22476406d129f77 Mon Sep 17 00:00:00 2001 From: Kamil Turek Date: Sat, 13 Nov 2021 14:18:18 +0100 Subject: [PATCH] Fix acceptance test linting --- .../image_recipe_data_source_test.go | 6 +++--- .../service/imagebuilder/image_recipe_test.go | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/service/imagebuilder/image_recipe_data_source_test.go b/internal/service/imagebuilder/image_recipe_data_source_test.go index b171e81b66e..3090979bf48 100644 --- a/internal/service/imagebuilder/image_recipe_data_source_test.go +++ b/internal/service/imagebuilder/image_recipe_data_source_test.go @@ -74,9 +74,9 @@ resource "aws_imagebuilder_image_recipe" "test" { component_arn = aws_imagebuilder_component.test.arn } - name = %[1]q - parent_image = "arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x" - version = "1.0.0" + name = %[1]q + parent_image = "arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x" + version = "1.0.0" user_data_base64 = base64encode("helloworld") } diff --git a/internal/service/imagebuilder/image_recipe_test.go b/internal/service/imagebuilder/image_recipe_test.go index 59f6cec1700..b6668cddc23 100644 --- a/internal/service/imagebuilder/image_recipe_test.go +++ b/internal/service/imagebuilder/image_recipe_test.go @@ -980,14 +980,14 @@ func testAccImageRecipeUserDataBase64Config(rName string) string { testAccImageRecipeBaseConfig(rName), fmt.Sprintf(` resource "aws_imagebuilder_image_recipe" "test" { - component { - component_arn = aws_imagebuilder_component.test.arn - } - - name = %[1]q - parent_image = "arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x" - version = "1.0.0" - user_data_base64 = base64encode("hello world") - } + component { + component_arn = aws_imagebuilder_component.test.arn + } + + name = %[1]q + parent_image = "arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x" + version = "1.0.0" + user_data_base64 = base64encode("hello world") +} `, rName)) }