]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
add no Content-Length PUT object acl test
authorStephon Striplin <stephon.striplin@dreamhost.com>
Thu, 22 Sep 2011 19:50:13 +0000 (12:50 -0700)
committerStephon Striplin <stephon.striplin@dreamhost.com>
Thu, 22 Sep 2011 19:50:13 +0000 (12:50 -0700)
s3tests/functional/test_headers.py

index 3743cfd06d6a6a934088c4df8d5498cfbe959de6..6d504950ecb5cb372e6b4da034bdcfbd52aaeb56 100644 (file)
@@ -510,3 +510,14 @@ def test_object_create_bad_date_after_end():
 def test_bucket_create_contentlength_none():
     _add_custom_headers(remove=('Content-Length',))
     get_new_bucket()
+
+
+@nose.with_setup(teardown=_clear_custom_headers)
+@attr('fails_on_rgw')
+def test_acl_create_contentlength_none():
+    bucket = get_new_bucket()
+    key = bucket.new_key('foo')
+    key.set_contents_from_string('blah')
+
+    _add_custom_headers(remove=('Content-Length',))
+    key.set_acl('public-read')