From 250ee8d0892c290407a6258453958b95c4e0d2f7 Mon Sep 17 00:00:00 2001 From: Clint Date: Wed, 11 May 2016 10:18:45 -0500 Subject: [PATCH] provider/aws: Fix cloudtrail_tags config formatting in test (#6615) --- .../aws/resource_aws_cloudtrail_test.go | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/builtin/providers/aws/resource_aws_cloudtrail_test.go b/builtin/providers/aws/resource_aws_cloudtrail_test.go index 0c7f8497a..8f6ae7223 100644 --- a/builtin/providers/aws/resource_aws_cloudtrail_test.go +++ b/builtin/providers/aws/resource_aws_cloudtrail_test.go @@ -617,23 +617,33 @@ POLICY ` func testAccAWSCloudTrailConfig_tags(cloudTrailRandInt int) string { - return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, - `tags { + tagsString := `tags { Foo = "moo" Pooh = "hi" - }`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) + }` + return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, + cloudTrailRandInt, + tagsString, + cloudTrailRandInt, + cloudTrailRandInt, + cloudTrailRandInt) } func testAccAWSCloudTrailConfig_tagsModified(cloudTrailRandInt int) string { - return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, - `tags { + tagsString := `tags { Foo = "moo" Pooh = "hi" Moo = "boom" - }`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) + }` + return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, + cloudTrailRandInt, + tagsString, + cloudTrailRandInt, + cloudTrailRandInt, + cloudTrailRandInt) } func testAccAWSCloudTrailConfig_tagsModifiedAgain(cloudTrailRandInt int) string { return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, - "", cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) + cloudTrailRandInt, "", cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) }