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 {
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)
}