provider/aws: Fix cloudtrail_tags config formatting in test (#6615)

This commit is contained in:
Clint 2016-05-11 10:18:45 -05:00
parent f0b39b6ced
commit 250ee8d089
1 changed files with 17 additions and 7 deletions

View File

@ -617,23 +617,33 @@ POLICY
` `
func testAccAWSCloudTrailConfig_tags(cloudTrailRandInt int) string { func testAccAWSCloudTrailConfig_tags(cloudTrailRandInt int) string {
return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, tagsString := `tags {
`tags {
Foo = "moo" Foo = "moo"
Pooh = "hi" Pooh = "hi"
}`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) }`
return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl,
cloudTrailRandInt,
tagsString,
cloudTrailRandInt,
cloudTrailRandInt,
cloudTrailRandInt)
} }
func testAccAWSCloudTrailConfig_tagsModified(cloudTrailRandInt int) string { func testAccAWSCloudTrailConfig_tagsModified(cloudTrailRandInt int) string {
return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, tagsString := `tags {
`tags {
Foo = "moo" Foo = "moo"
Pooh = "hi" Pooh = "hi"
Moo = "boom" Moo = "boom"
}`, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) }`
return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl,
cloudTrailRandInt,
tagsString,
cloudTrailRandInt,
cloudTrailRandInt,
cloudTrailRandInt)
} }
func testAccAWSCloudTrailConfig_tagsModifiedAgain(cloudTrailRandInt int) string { func testAccAWSCloudTrailConfig_tagsModifiedAgain(cloudTrailRandInt int) string {
return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl, return fmt.Sprintf(testAccAWSCloudTrailConfig_tags_tpl,
"", cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt) cloudTrailRandInt, "", cloudTrailRandInt, cloudTrailRandInt, cloudTrailRandInt)
} }