mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-27 23:31:41 +00:00
Merge pull request #473 from cbodley/wip-copyobj-tails
add test_object_copy_16m to test refcounting of tail objects
This commit is contained in:
commit
64e919a13b
1 changed files with 17 additions and 0 deletions
|
@ -6287,6 +6287,23 @@ def test_object_copy_zero_size():
|
||||||
response = client.get_object(Bucket=bucket_name, Key='bar321foo')
|
response = client.get_object(Bucket=bucket_name, Key='bar321foo')
|
||||||
eq(response['ContentLength'], 0)
|
eq(response['ContentLength'], 0)
|
||||||
|
|
||||||
|
@attr(resource='object')
|
||||||
|
@attr(method='put')
|
||||||
|
@attr(operation='copy 16mb object in same bucket')
|
||||||
|
@attr(assertion='works')
|
||||||
|
@attr('fails_on_dbstore')
|
||||||
|
def test_object_copy_16m():
|
||||||
|
bucket_name = get_new_bucket()
|
||||||
|
key1 = 'obj1'
|
||||||
|
client = get_client()
|
||||||
|
client.put_object(Bucket=bucket_name, Key=key1, Body=bytearray(16*1024*1024))
|
||||||
|
|
||||||
|
copy_source = {'Bucket': bucket_name, 'Key': key1}
|
||||||
|
key2 = 'obj2'
|
||||||
|
client.copy_object(Bucket=bucket_name, Key=key2, CopySource=copy_source)
|
||||||
|
response = client.get_object(Bucket=bucket_name, Key=key2)
|
||||||
|
eq(response['ContentLength'], 16*1024*1024)
|
||||||
|
|
||||||
@attr(resource='object')
|
@attr(resource='object')
|
||||||
@attr(method='put')
|
@attr(method='put')
|
||||||
@attr(operation='copy object in same bucket')
|
@attr(operation='copy object in same bucket')
|
||||||
|
|
Loading…
Reference in a new issue