]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Test that put object returns correct ETag 16/head
authorAndrew Gaul <andrew@gaul.org>
Fri, 22 Aug 2014 18:04:36 +0000 (11:04 -0700)
committerAndrew Gaul <andrew@gaul.org>
Fri, 22 Aug 2014 18:13:57 +0000 (11:13 -0700)
s3tests/functional/test_s3.py

index 44db1f191f38cfe5288067fe81546240b8cda8ae..d3c2ee1be5577b0b92460a682a52edd322514310 100644 (file)
@@ -861,6 +861,18 @@ def test_multi_object_delete():
         eq(len(result.deleted), 2)
         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(method='all')
 @attr(operation='complete object life cycle')