Skip to content

Commit

Permalink
Revert "test_bucket_create_exists should fail on recreate"
Browse files Browse the repository at this point in the history
This reverts commit c82649b.

The suite does not support duality in behaviors (e.g.
US Standard vs. Regional behavior) so we adhere to US
Standard only.

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
  • Loading branch information
alfredodeza committed Dec 15, 2014
1 parent c6043fa commit abc9e67
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions s3tests/functional/test_s3.py
Expand Up @@ -2791,15 +2791,11 @@ def test_bucket_create_naming_dns_dash_dot():
@attr(resource='bucket')
@attr(method='put')
@attr(operation='re-create')
@attr(assertion='fails 409')
@attr(assertion='idempotent success')
def test_bucket_create_exists():
# aws-s3 default region allows recreation of buckets
# but all other regions fail with BucketAlreadyOwnedByYou.
bucket = get_new_bucket(targets.main.default)
e = assert_raises(boto.exception.S3CreateError, get_new_bucket, targets.main.default, bucket.name)
eq(e.status, 409)
eq(e.reason, 'Conflict')
eq(e.error_code, 'BucketAlreadyOwnedByYou')
# REST idempotency means this should be a nop
get_new_bucket(targets.main.default, bucket.name)


@attr(resource='bucket')
Expand Down

0 comments on commit abc9e67

Please sign in to comment.