diff options
author | Matthew Oliver <matt@oliver.net.au> | 2019-04-16 16:59:51 +1000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2019-06-20 12:41:50 -0700 |
commit | 9f1ef35630ebf9da53cbd061f89889e534803725 (patch) | |
tree | 6220fa83c38b8ae38354b1b23712afa5d8650b60 /tox.ini | |
parent | d44a581cdd50c1158ac810f21202943b7d20624f (diff) | |
download | swift-9f1ef35630ebf9da53cbd061f89889e534803725.tar.gz |
py3: Port the tempurl middleware
This patch ports the tempurl middleware over to PY3. We use
an "all-native" string model, where we convert WSGI strings
as soon as we see them. It helps to deal with HMAC.
Aaand, we fix formpost along the way. It _clearly_ was
doing a wrong thing, encoding the same body several times
if we had several keys. On py2 it wasn't noticeable, but
on py3 this breaks, because the bytes type cannot be encoded
again.
Change-Id: I69974cc8a39731c980b54137b799a36b2e63a44a
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 74 |
1 files changed, 1 insertions, 73 deletions
@@ -27,79 +27,6 @@ setenv = VIRTUAL_ENV={envdir} NOSE_COVER_HTML=1 NOSE_COVER_HTML_DIR={toxinidir}/cover -# Since the practice demonstrated that developers keep adding py2-specific -# code inadvertedly, we instituted a practice of "py3 ratchet": we convert -# tests file by file, add them into the list below, and never go back. -# This list also serves as a shared task board for those helping with py3. -# But mind that reviews expanding this list may be outstanding in Gerrit. -[testenv:py37] -commands = - find . ( -type f -o -type l ) -name "*.py[c|o]" -delete - find . -type d -name "__pycache__" -delete - nosetests {posargs:\ - test/unit/account \ - test/unit/cli \ - test/unit/common/middleware/crypto \ - test/unit/common/middleware/s3api/ \ - test/unit/common/middleware/test_account_quotas.py \ - test/unit/common/middleware/test_acl.py \ - test/unit/common/middleware/test_bulk.py \ - test/unit/common/middleware/test_catch_errors.py \ - test/unit/common/middleware/test_cname_lookup.py \ - test/unit/common/middleware/test_container_sync.py \ - test/unit/common/middleware/test_copy.py \ - test/unit/common/middleware/test_crossdomain.py \ - test/unit/common/middleware/test_dlo.py \ - test/unit/common/middleware/test_domain_remap.py \ - test/unit/common/middleware/test_formpost.py \ - test/unit/common/middleware/test_gatekeeper.py \ - test/unit/common/middleware/test_healthcheck.py \ - test/unit/common/middleware/test_keystoneauth.py \ - test/unit/common/middleware/test_list_endpoints.py \ - test/unit/common/middleware/test_listing_formats.py \ - test/unit/common/middleware/test_memcache.py \ - test/unit/common/middleware/test_name_check.py \ - test/unit/common/middleware/test_proxy_logging.py \ - test/unit/common/middleware/test_quotas.py \ - test/unit/common/middleware/test_ratelimit.py \ - test/unit/common/middleware/test_read_only.py \ - test/unit/common/middleware/test_recon.py \ - test/unit/common/middleware/test_slo.py \ - test/unit/common/middleware/test_subrequest_logging.py \ - test/unit/common/middleware/test_staticweb.py \ - test/unit/common/middleware/test_symlink.py \ - test/unit/common/middleware/test_tempauth.py \ - test/unit/common/middleware/test_versioned_writes.py \ - test/unit/common/middleware/test_xprofile.py \ - test/unit/common/ring \ - test/unit/common/test_base_storage_server.py \ - test/unit/common/test_bufferedhttp.py \ - test/unit/common/test_constraints.py \ - test/unit/common/test_container_sync_realms.py \ - test/unit/common/test_daemon.py \ - test/unit/common/test_db.py \ - test/unit/common/test_db_replicator.py \ - test/unit/common/test_direct_client.py \ - test/unit/common/test_exceptions.py \ - test/unit/common/test_header_key_dict.py \ - test/unit/common/test_internal_client.py \ - test/unit/common/test_linkat.py \ - test/unit/common/test_manager.py \ - test/unit/common/test_memcached.py \ - test/unit/common/test_request_helpers.py \ - test/unit/common/test_splice.py \ - test/unit/common/test_storage_policy.py \ - test/unit/common/test_swob.py \ - test/unit/common/test_utils.py \ - test/unit/common/test_wsgi.py \ - test/unit/container \ - test/unit/obj \ - test/unit/proxy \ - test/unit/test_locale} - -[testenv:py36] -commands = {[testenv:py37]commands} - [testenv:pep8] basepython = python2.7 commands = @@ -122,6 +49,7 @@ basepython = python3 commands = nosetests {posargs: \ test/functional/test_symlink.py \ + test/functional/test_tempurl.py \ test/functional/tests.py} [testenv:func-encryption] |