mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
Merge pull request #16 from andrewgaul/put-object-correct-etag
Test that put object returns correct ETag Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
681063cc87
1 changed files with 12 additions and 0 deletions
|
@ -865,6 +865,18 @@ def test_multi_object_delete():
|
||||||
eq(len(result.deleted), 2)
|
eq(len(result.deleted), 2)
|
||||||
eq(len(result.errors), 0)
|
eq(len(result.errors), 0)
|
||||||
|
|
||||||
|
@attr(resource='object')
|
||||||
|
@attr(method='put')
|
||||||
|
@attr(operation='write key')
|
||||||
|
@attr(assertion='correct etag')
|
||||||
|
def test_object_write_check_etag():
|
||||||
|
bucket = get_new_bucket()
|
||||||
|
key = bucket.new_key('foo')
|
||||||
|
res = _make_request('PUT', bucket, key, body='bar', authenticated=True)
|
||||||
|
eq(res.status, 200)
|
||||||
|
eq(res.reason, 'OK')
|
||||||
|
eq(res.getheader("ETag"), '"37b51d194a7513e45b56f6524f2d51f2"')
|
||||||
|
|
||||||
@attr(resource='object')
|
@attr(resource='object')
|
||||||
@attr(method='all')
|
@attr(method='all')
|
||||||
@attr(operation='complete object life cycle')
|
@attr(operation='complete object life cycle')
|
||||||
|
|
Loading…
Reference in a new issue