mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-23 23:25:28 +00:00
Add test for HEAD of a zero-byte object
Signed-off-by: Andrew Gaul <andrew@gaul.org>
This commit is contained in:
parent
d7f3992f33
commit
7ac3a4008a
1 changed files with 12 additions and 0 deletions
|
@ -905,6 +905,18 @@ def test_multi_object_delete():
|
|||
eq(len(result.errors), 0)
|
||||
eq(len(bucket.get_all_keys()), 0)
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='write zero-byte key')
|
||||
@attr(assertion='correct content length')
|
||||
def test_object_head_zero_bytes():
|
||||
bucket = get_new_bucket()
|
||||
key = bucket.new_key('foo')
|
||||
key.set_contents_from_string('')
|
||||
|
||||
key2 = bucket.get_key('foo')
|
||||
eq(key2.content_length, '0')
|
||||
|
||||
@attr(resource='object')
|
||||
@attr(method='put')
|
||||
@attr(operation='write key')
|
||||
|
|
Loading…
Reference in a new issue