From e4d78eccbb82792f67f40e0e31754606b87dfd8d Mon Sep 17 00:00:00 2001 From: Stephon Striplin Date: Thu, 25 Aug 2011 17:45:16 -0700 Subject: [PATCH] add test for missing Content-Length header bucket creation --- s3tests/functional/test_headers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/s3tests/functional/test_headers.py b/s3tests/functional/test_headers.py index 9623879..3743cfd 100644 --- a/s3tests/functional/test_headers.py +++ b/s3tests/functional/test_headers.py @@ -502,3 +502,11 @@ def test_object_create_bad_date_after_end(): eq(e.status, 403) eq(e.reason, 'Forbidden') eq(e.error_code, 'RequestTimeTooSkewed') + + +@nose.with_setup(teardown=_clear_custom_headers) +@attr('fails_on_dho') +@attr('fails_on_rgw') +def test_bucket_create_contentlength_none(): + _add_custom_headers(remove=('Content-Length',)) + get_new_bucket()