Skip to content

Commit

Permalink
tests: fix test_bucket_recreate_not_overriding
Browse files Browse the repository at this point in the history
Test didn't handle a valid error during a creation of
a bucket with an existing name.

Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Nov 9, 2023
1 parent 260b5c6 commit 377b83c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions s3tests_boto3/functional/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6478,7 +6478,6 @@ def test_bucket_create_naming_good_contains_hyphen():
check_good_bucket_name("aaa-111")


@pytest.mark.skip(reason="Potential Bug")
def test_bucket_recreate_not_overriding():
key_names = ["mykey1", "mykey2"]
bucket_name = _create_objects(keys=key_names)
Expand All @@ -6487,7 +6486,7 @@ def test_bucket_recreate_not_overriding():
assert key_names == objs_list

client = get_client()
client.create_bucket(Bucket=bucket_name)
assert_raises(ClientError, client.create_bucket, Bucket=bucket_name)

objs_list = get_objects_list(bucket_name)
assert key_names == objs_list
Expand Down

0 comments on commit 377b83c

Please sign in to comment.