mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
add a Content-Type header test
This commit is contained in:
parent
ab7b4eb03d
commit
28c4b432c4
1 changed files with 6 additions and 0 deletions
|
@ -292,6 +292,12 @@ def test_object_create_bad_contenttype_unreadable():
|
|||
assert e.error_code in ('AccessDenied', 'SignatureDoesNotMatch')
|
||||
|
||||
|
||||
@nose.with_setup(teardown=_clear_custom_headers)
|
||||
def test_object_create_bad_contenttype_none():
|
||||
key = _setup_bad_object(remove=('Content-Type',))
|
||||
key.set_contents_from_string('bar')
|
||||
|
||||
|
||||
@nose.with_setup(teardown=_clear_custom_headers)
|
||||
def test_object_create_bad_ua_invalid():
|
||||
key = _setup_bad_object({'User-Agent': ''})
|
||||
|
|
Loading…
Reference in a new issue