]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
remove contentlength zero header test
authorStephon Striplin <stephon.striplin@dreamhost.com>
Thu, 11 Aug 2011 18:01:56 +0000 (11:01 -0700)
committerStephon Striplin <stephon.striplin@dreamhost.com>
Thu, 11 Aug 2011 18:01:56 +0000 (11:01 -0700)
This test effectively tells the server that this request will contain no
data and any data in the body should be interpreted to be part of the
next request. By luck, we close the tcp connection beforehand so we
don't see this additional data. However, the issues caused here would
not be at the rgw/dho level.

s3tests/functional/test_headers.py

index c39c6266f6fa74f50fdfc9b49e2f2c2a8aa85268..96238796e3b4997b7d15fa968554b73d7436deba 100644 (file)
@@ -255,17 +255,6 @@ def test_object_create_bad_contentlength_negative():
     eq(e.error_code, None)
 
 
-@nose.with_setup(teardown=_clear_custom_headers)
-@attr('fails_on_dho')
-def test_object_create_bad_contentlength_zero():
-    key = _setup_bad_object({'Content-Length': 0})
-
-    e = assert_raises(boto.exception.S3ResponseError, key.set_contents_from_string, 'bar')
-    eq(e.status, 400)
-    eq(e.reason, 'Bad Request')
-    eq(e.error_code, 'BadDigest')
-
-
 @nose.with_setup(teardown=_clear_custom_headers)
 def test_object_create_bad_contentlength_none():
     key = _setup_bad_object(remove=('Content-Length',))