swift/test/unit/common/middleware
Walter Doekes 24c086c8d0 tempurl: Fix PUT upload to temp url on py3
Without this change, the self._response_headers gets a dict_items() type
on PUT. But the rest of the code assumes that it is a list.

Bug manifestation:

    File "swift/common/middleware/catch_errors.py", line 120,
        in handle_request
      self._response_headers.append(('X-Trans-Id', trans_id))
  AttributeError: 'dict_items' object has no attribute 'append'

Closes-Bug: #1929083
Change-Id: I5c398b6008716b64c668737e4201ba3b6ab3320b
(cherry picked from commit 77530136f1)
2021-05-21 18:40:52 +00:00
..
crypto replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
s3api Merge "s3api: Allow CORS preflight requests" 2021-03-16 04:20:52 +00:00
__init__.py Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
helpers.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
test_account_quotas.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_acl.py pep8 fix: assertEquals -> assertEqual 2015-10-11 12:57:25 +02:00
test_bulk.py Allow bulk to fwd some headers at tar extraction 2020-01-17 11:34:39 -08:00
test_catch_errors.py Merge "Enforce Content-Length in catch_errors" 2018-06-28 12:23:45 +00:00
test_cname_lookup.py Ensure domain stored in memcached gets utf8 decoded on py2 2020-02-11 14:42:33 -08:00
test_container_sync.py container-sync: Sync static links similar to how we sync SLOs 2020-01-24 17:15:57 -08:00
test_copy.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
test_crossdomain.py Increase some middleware test coverage 2019-06-05 06:19:04 +00:00
test_dlo.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
test_domain_remap.py swob: Fix up some WSGI string business 2018-06-27 15:55:30 -07:00
test_etag_quoter.py Middleware that allows a user to have quoted Etags 2020-01-27 12:53:35 -08:00
test_formpost.py py3: Fix formpost unicode filename issues 2020-01-15 16:52:37 -08:00
test_gatekeeper.py Allow internal clients to use reserved namespace 2019-11-27 11:22:00 -06:00
test_healthcheck.py swob: Stop auto-encoding unicode bodies 2018-06-28 09:58:44 -07:00
test_keystoneauth.py Add a read-only role to keystoneauth 2021-02-08 22:02:17 -06:00
test_list_endpoints.py py3: Monkey-patch json.loads to accept bytes on py35 2018-11-02 21:38:53 +00:00
test_listing_formats.py Fix up some Content-Type handling in account/container listings 2020-02-28 18:32:38 -08:00
test_memcache.py Memcached client TLS support 2021-01-06 09:47:38 -08:00
test_name_check.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_object_versioning.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
test_proxy_logging.py tests: Replace FakeLogger with debug_logger in test_proxy_logging 2020-10-29 15:40:17 -07:00
test_quotas.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_ratelimit.py ratelimit: Allow multiple placements 2020-05-19 11:10:22 -07:00
test_read_only.py py3: port some more middleware tests 2019-02-21 09:44:02 -08:00
test_recon.py Plumb sharding stats though recon middleware 2021-02-26 15:51:06 +00:00
test_slo.py Use CloseableChain when creating iterator of SLO response 2020-12-29 16:14:28 +00:00
test_staticweb.py py3: port staticweb middleware 2019-04-10 17:08:21 +10:00
test_subrequest_logging.py Remove unhelpful log message in copy middleware 2018-05-29 16:59:14 -07:00
test_symlink.py Log storage policy with s3api requests 2020-10-01 17:18:13 -07:00
test_tempauth.py tempauth: Add .reseller_reader group 2021-02-09 16:35:03 -08:00
test_tempurl.py tempurl: Fix PUT upload to temp url on py3 2021-05-21 18:40:52 +00:00
test_versioned_writes.py middlewares: Clean up app iters better 2020-02-12 21:27:15 -08:00
test_xprofile.py Consistently use io.BytesIO 2019-10-15 15:09:46 +02:00