Skip to content

Commit

Permalink
Merge pull request #1746 from aws/zoewangg-patch-2
Browse files Browse the repository at this point in the history
Remove createBucketAlreadyExists test
  • Loading branch information
zoewangg authored Oct 6, 2021
2 parents 776c577 + 3216768 commit 161a971
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ public void createBucketAlreadyOwnedByYou() {
.satisfies(e -> assertMetadata((S3Exception) e, "BucketAlreadyOwnedByYou"));
}

@Test
public void createBucketAlreadyExists() {
assertThatThrownBy(() -> s3.createBucket(b -> b.bucket("development")))
.isInstanceOf(BucketAlreadyExistsException.class)
.satisfies(e -> assertMetadata((S3Exception) e, "BucketAlreadyExists"));
}

@Test
public void getObjectNoSuchKey() {
assertThatThrownBy(() -> s3.getObject(GetObjectRequest.builder().bucket(BUCKET).key(KEY).build()))
Expand Down

0 comments on commit 161a971

Please sign in to comment.