]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
add test for missing Content-Length header bucket creation
authorStephon Striplin <stephon.striplin@dreamhost.com>
Fri, 26 Aug 2011 00:45:16 +0000 (17:45 -0700)
committerStephon Striplin <stephon.striplin@dreamhost.com>
Fri, 26 Aug 2011 00:46:25 +0000 (17:46 -0700)
s3tests/functional/test_headers.py

index 96238796e3b4997b7d15fa968554b73d7436deba..3743cfd06d6a6a934088c4df8d5498cfbe959de6 100644 (file)
@@ -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()