mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-25 13:56:37 +00:00
Merge pull request #56 from jmunhoz/bug-11753
s3tests: Test copying foreign object in foreign bucket Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
368b27a5c3
1 changed files with 12 additions and 0 deletions
|
@ -4447,6 +4447,18 @@ def test_object_copy_not_owned_bucket():
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='copy a non-owned object in a non-owned bucket, but with perms')
|
||||
@attr(assertion='works')
|
||||
def test_object_copy_not_owned_object_bucket():
|
||||
bucket = get_new_bucket(targets.main.default)
|
||||
key = bucket.new_key('foo123bar')
|
||||
key.set_contents_from_string('foo')
|
||||
bucket.add_user_grant(permission='FULL_CONTROL', user_id=config.alt.user_id, recursive=True)
|
||||
k2 = s3.alt.get_bucket(bucket.name).get_key('foo123bar')
|
||||
k2.copy(bucket.name, 'bar321foo')
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='copy object and change acl')
|
||||
|
|
Loading…
Reference in a new issue