provider/aws: Fix cloudtrail_tags config formatting in test (#6615)
This commit is contained in:
parent
f0b39b6ced
commit
250ee8d089
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue