Skip to content

Commit

Permalink
r/aws_s3_object(test): fixed _tags post destroy bucket deletion error
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed May 24, 2023
1 parent ae934a2 commit e2177f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/service/s3/object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,8 @@ resource "aws_s3_object" "object" {
func testAccObjectConfig_tags(rName, key, content string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
bucket = %[1]q
force_destroy = true
}
resource "aws_s3_bucket_versioning" "test" {
Expand Down Expand Up @@ -1875,7 +1876,8 @@ resource "aws_s3_object" "object" {
func testAccObjectConfig_updatedTags(rName, key, content string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
bucket = %[1]q
force_destroy = true
}
resource "aws_s3_bucket_versioning" "test" {
Expand Down Expand Up @@ -1904,7 +1906,8 @@ resource "aws_s3_object" "object" {
func testAccObjectConfig_noTags(rName, key, content string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
bucket = %[1]q
force_destroy = true
}
resource "aws_s3_bucket_versioning" "test" {
Expand Down

0 comments on commit e2177f1

Please sign in to comment.