Skip to content

Commit

Permalink
Use util functions already there
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Feb 14, 2024
1 parent e852b30 commit 190f4eb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions services/s3/e2eTest/src/MutliRegionAccessPointTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
package aws.sdk.kotlin.e2etest

import aws.sdk.kotlin.e2etest.S3TestUtils.deleteBucketAndAllContents
import aws.sdk.kotlin.services.s3.S3Client
import aws.sdk.kotlin.services.s3.model.*
import aws.sdk.kotlin.services.s3.model.BucketLocationConstraint
Expand Down Expand Up @@ -70,16 +71,8 @@ class MutliRegionAccessPointTest {
deleteMultiRegionAccessPoint(s3Control, multiRegionAccessPoint, accountId)
}

if (s3BucketWasCreated(s3West, usWestBucket)) {
deleteS3Bucket(s3West, usWestBucket)
}

if (s3BucketWasCreated(s3East, usEastBucket)) {
if (objectWasCreated(s3East, usEastBucket, keyForObject)) {
deleteObject(s3East, usEastBucket, keyForObject)
}
deleteS3Bucket(s3East, usEastBucket)
}
deleteBucketAndAllContents(s3West, usWestBucket)
deleteBucketAndAllContents(s3East, usEastBucket)

closeClients(
s3West,
Expand Down

0 comments on commit 190f4eb

Please sign in to comment.