s3-tests/s3tests
Andrew Gaul 45c53c462d Handle idempotent and BucketAlreadyOwnedByYou
AWS S3 has two behaviors for recreating a bucket depending if you use
the us-standard or another region:

>>> bucket = conn.create_bucket('gaul-default', location=Location.DEFAULT)
>>> bucket = conn.create_bucket('gaul-default', location=Location.DEFAULT)
>>> bucket = conn.create_bucket('gaul-uswest', location=Location.USWest)
>>> bucket = conn.create_bucket('gaul-uswest', location=Location.USWest)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 499, in create_bucket
    response.status, response.reason, body)
boto.exception.S3CreateError: S3CreateError: 409 Conflict
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>BucketAlreadyOwnedByYou</Code><Message>Your previous request to create the named bucket succeeded and you already own it.</Message><BucketName>gaul-uswest</BucketName><RequestId>24B6DC3170365CD7</RequestId><HostId>hUynMTyqc9WZFxAJ2RFK6P7BqmmeHHlMl9xL2NOy56xBUnOZCAlHqGvtMeGeAfVs</HostId></Error>

Additional discussion:

https://issues.apache.org/jira/browse/JCLOUDS-334
2014-12-22 21:05:27 -08:00
..
analysis readwrite analysis tool 2011-12-20 00:06:17 +00:00
functional Handle idempotent and BucketAlreadyOwnedByYou 2014-12-22 21:05:27 -08:00
fuzz Added descriptions of what the fuzzer is and does. 2011-12-22 16:09:21 -08:00
__init__.py Move test_s3 into s3tests.functional, so it can be split to multiple files nicely. 2011-07-11 15:24:39 -07:00
common.py add calling_format switch in functional and common 2011-11-03 10:22:23 -07:00
generate_objects.py generate_objects: use rewind=True in upload_objects 2013-03-01 15:45:28 -08:00
readwrite.py readwrite: add missing traceback object 2013-08-26 13:58:59 -07:00
realistic.py realistic.py: update seek() implementation 2012-05-16 16:35:13 -07:00
roundtrip.py Measure and record duration of write and read stages in roundtrip test. 2011-07-27 11:33:15 -07:00