Skip to content

Commit 8de8583

Browse files
committed
fix(object): add test force_destroy
1 parent a753578 commit 8de8583

File tree

2 files changed

+1253
-258
lines changed

2 files changed

+1253
-258
lines changed

internal/services/object/bucket_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,18 @@ func TestAccObjectBucket_DestroyForce(t *testing.T) {
760760
addObjectToBucket(tt, resourceName),
761761
),
762762
},
763+
{
764+
Config: fmt.Sprintf(`
765+
resource "scaleway_object_bucket" "bucket" {
766+
name = %[1]q
767+
region = %[2]q
768+
force_destroy = true
769+
}`, bucketName, objectTestsMainRegion),
770+
Check: resource.ComposeTestCheckFunc(
771+
objectchecks.CheckBucketExists(tt, resourceName, true),
772+
addObjectToBucket(tt, resourceName),
773+
),
774+
},
763775
},
764776
})
765777
}

0 commit comments

Comments
 (0)