From dc732021d6205eee4654c182afecc70437aa2187 Mon Sep 17 00:00:00 2001 From: Stephon Striplin Date: Thu, 22 Sep 2011 12:50:13 -0700 Subject: [PATCH] add no Content-Length PUT object acl test --- s3tests/functional/test_headers.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/s3tests/functional/test_headers.py b/s3tests/functional/test_headers.py index 3743cfd..6d50495 100644 --- a/s3tests/functional/test_headers.py +++ b/s3tests/functional/test_headers.py @@ -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')