swift/test/functional
Clay Gerrard fa889358ac Ensure correct content-type in container HEAD response
A failing CORS test in the gate discovered that we were responding
application/json to ?format=txt requests (which is maybe not even a
valid value for that qs param?), but only when running with
eventlet==0.38.0

This avoids the problem of backend container server HEADs no longer
having 'Content-Length: 0' by fixing the client HEAD resp headers before
we check for chunked-transfer resp.

Drive-By: refactor listing_formats to use HeaderKeyDict and always set
Content-Length explicitly

Co-Authored-By: Alistair Coles <alistairncoles@gmail.com>
Co-Authored-By: Matthew Oliver <matt@oliver.net.au>

Change-Id: If724485e1425d1481d10b9255436301e346f07e8
2024-11-25 10:15:04 +11:00
..
s3api CI: Move a bunch of func test jobs from py38 to py312 2024-10-31 11:05:15 -07:00
__init__.py fix x-open-expired 404 on HEAD?part-number reqs 2024-10-18 18:33:09 +00:00
mock_swift_key_manager.py Retrieve encryption root secret from Barbican 2017-08-02 15:53:09 +03:00
swift_test_client.py slo: add more functional tests for copying 2024-11-04 11:21:07 +00:00
test_access_control.py Get func tests passing with a minimal proxy pipeline 2020-09-18 13:05:41 -07:00
test_account.py Ensure correct content-type in container HEAD response 2024-11-25 10:15:04 +11:00
test_container.py Ensure correct content-type in container HEAD response 2024-11-25 10:15:04 +11:00
test_dlo.py Fix handling of non-ASCII accounts 2023-06-13 15:28:41 -07:00
test_domain_remap.py Fix handling of non-ASCII accounts 2023-06-13 15:28:41 -07:00
test_object_versioning.py slo: part-number=N query parameter support 2024-03-12 06:47:02 -07:00
test_object.py support x-open-expired header for expired objects 2024-04-26 10:13:40 +01:00
test_protocol.py utils: paths with empty components are invalid 2024-09-06 14:51:44 -07:00
test_slo.py slo: add more functional tests for copying 2024-11-04 11:21:07 +00:00
test_staticweb.py staticweb: Work with prefix-based tempurls 2024-02-05 15:13:12 -08:00
test_symlink.py tempurl: Deprecate sha1 signatures 2022-04-22 20:43:01 +10:00
test_tempurl.py trivial: remove print from functional tests 2024-09-26 13:31:30 +01:00
test_versioned_writes.py tests: Let func tests run with test users 1 and 2 but not 3 2023-03-10 14:07:21 -08:00
tests.py slo: part-number=N query parameter support 2024-03-12 06:47:02 -07:00