From 801708fdefc2ac5c8cbc747d83c8beefcf517c42 Mon Sep 17 00:00:00 2001 From: Andrew Babichev Date: Sat, 21 Dec 2019 21:55:12 +0200 Subject: [PATCH] @review Replace test config string interpolation with concatenation --- ...ta_source_aws_directory_service_directory_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/aws/data_source_aws_directory_service_directory_test.go b/aws/data_source_aws_directory_service_directory_test.go index 594f244bf63..05ba19318e3 100644 --- a/aws/data_source_aws_directory_service_directory_test.go +++ b/aws/data_source_aws_directory_service_directory_test.go @@ -106,9 +106,7 @@ resource "aws_subnet" "secondary" { } func testAccDataSourceAwsDirectoryServiceDirectoryConfig_SimpleAD(alias string) string { - return fmt.Sprintf(` -%s - + return testAccDataSourceAwsDirectoryServiceDirectoryConfig_Prerequisites("simple-ad") + fmt.Sprintf(` resource "aws_directory_service_directory" "test-simple-ad" { type = "SimpleAD" size = "Small" @@ -129,13 +127,11 @@ resource "aws_directory_service_directory" "test-simple-ad" { data "aws_directory_service_directory" "test-simple-ad" { directory_id = "${aws_directory_service_directory.test-simple-ad.id}" } -`, testAccDataSourceAwsDirectoryServiceDirectoryConfig_Prerequisites("simple-ad"), alias) +`, alias) } func testAccDataSourceAwsDirectoryServiceDirectoryConfig_MicrosoftAD(alias string) string { - return fmt.Sprintf(` -%s - + return testAccDataSourceAwsDirectoryServiceDirectoryConfig_Prerequisites("microsoft-ad") + fmt.Sprintf(` resource "aws_directory_service_directory" "test-microsoft-ad" { type = "MicrosoftAD" edition = "Standard" @@ -156,5 +152,5 @@ resource "aws_directory_service_directory" "test-microsoft-ad" { data "aws_directory_service_directory" "test-microsoft-ad" { directory_id = "${aws_directory_service_directory.test-microsoft-ad.id}" } -`, testAccDataSourceAwsDirectoryServiceDirectoryConfig_Prerequisites("microsoft-ad"), alias) +`, alias) }