4f9595f1130f6c45f8e3e08db55dddc31844be93
Commit Graph

205 Commits

Author SHA1 Message Date
Matthew Oliver
4f9595f113 py3: port symlink middleware
This patch ports the symlink middleware to py3.
The middleware itself seems to be mostly fine and most changes
are in the symlink unit tests.
Change-Id: I973c2e1bb8969cf6bffece8ce68881c393efbaef
2019年05月30日 11:44:42 -07:00
Tim Burke
40bd9f16a3 py3: port diskfile
Change-Id: Ie73f9df460f9014014168d6e60767e66b24d30b0
2019年05月22日 13:25:54 -07:00
Zuul
720979e3f1 Merge "py3: port expirer" 2019年05月22日 05:59:41 +00:00
Zuul
72a0115514 Merge "Get functional/tests.py running under py3" 2019年05月18日 07:33:03 +00:00
Pete Zaitcev
bd8c3067b4 py3: slo
This adds wsgi_to_str(self.path_info) everywhere we forgot it,
not only in the slo module itself.
Dropping the body=''.join(body) after call_slo() is obvious:
the latter only returns strings of bytes, not lists of such.
Change-Id: I6b4d87e4cda4945bc128dbc9c1edd39e736a59d2
2019年05月17日 17:57:23 -05:00
Zuul
f1a0eccab9 Merge "py3: bulk -- alternate approach" 2019年05月17日 22:49:10 +00:00
Tim Burke
bec2cccd43 py3: port expirer
Change-Id: Ib5aeda94fe9b165f54ad7412d68d71b62e427a40
2019年05月14日 17:10:54 -07:00
Tim Burke
5cd2a2ac2f py3: bulk -- alternate approach
Related-Change: I3603247e0c36299de2107aa8e494a3f87647696f
Change-Id: Iaf14c1ab3e236e6774492ed711fccef066a16fca
2019年05月13日 20:08:50 -05:00
Tim Burke
51e415b749 py3: port proxy/test_mem_server.py
This finishes the proxy unit tests.
Change-Id: I2452e4e4dabef071bfbf376d03ec63211f7c2906
2019年05月08日 17:47:40 -07:00
Tim Burke
8b3d0a6c64 py3: finish porting proxy/test_server.py
Change-Id: I8287db75b4f19581203360c646e72f64fe45f170
2019年05月08日 17:47:40 -07:00
Tim Burke
506279235d Get functional/tests.py running under py3
Note that you need a pretty recent eventlet to pick up
https://github.com/eventlet/eventlet/commit/f0bc79e
Change-Id: I6b006b972e7431c406039f4e0f6890a8f74a4432
2019年05月08日 17:44:03 -07:00
Tim Burke
767872210f py3: port unit/proxy/test_sysmeta.py
Change-Id: I378705a8d9ad51dbfa85287d44e6313aa7680c23
2019年05月05日 05:06:54 +00:00
Zuul
310416abf3 Merge "py3: port s3api" 2019年05月04日 22:49:38 +00:00
Tim Burke
a239f4ec35 Remove py35 unit test job
Change-Id: Iadb3bed811907740f85bd9277ba09a4ca17fc025
2019年05月03日 13:36:42 -07:00
Tim Burke
3a9f3f8419 py3: port s3api
Drive-by: When passing a list or tuple to swob.Response as an app_iter,
check that it's full of byte strings.
Change-Id: Ifc35aacb2e45004f74c871f08ff3c52bc57c1463
2019年05月02日 16:38:39 -07:00
ZhongShengping
32bf43990c Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.
Change-Id: I5e77307de6a484fd69b2a5863423ceb357e8601f
2019年04月24日 09:56:54 +08:00
Zuul
1a1b44df6f Merge "py3: port dlo" 2019年04月18日 00:37:34 +00:00
Zuul
5e6b7f32ac Merge "Move from py35 to py37 for gating py3 jobs" 2019年04月17日 20:25:42 +00:00
Pete Zaitcev
893acffbc0 py3: port dlo
Change-Id: I7236ddea0acde93d0789ad8affa76df0097a86aa
2019年04月16日 22:34:58 -05:00
Tim Burke
7cb276da42 Move from py35 to py37 for gating py3 jobs
Looking at https://governance.openstack.org/tc/reference/runtimes/train.html
OpenStack is no longer targetting Python 3.5, so it doesn't really make sense
to gate on it. Move to Python 3.7, just to make it so we can go longer before
having to do this shuffle again.
Presumably, once we actually declare support for Python 3.6, we should
make that job voting, too? We've had enough gate flaky-ness lately that
I'm not keen on it.
Change-Id: I9c9e5df76a6592ab9c512b7c1ba807f9a0053059
2019年04月16日 13:50:29 -07:00
Matthew Oliver
b86bc51607 py3: port staticweb middleware
This patch is porting the staticweb middleware to py3.
Change-Id: I5d9a13baecedd13d2b7a8ae3dd639eaff0894441
2019年04月10日 17:08:21 +10:00
Zuul
880e4e4a09 Merge "py3: test/unit/common/middleware/s3api/test_s3token.py" 2019年04月09日 01:15:43 +00:00
Zuul
0df50b5124 Merge "Clean up more things before running unit tests" 2019年04月05日 04:13:40 +00:00
Zuul
1214bb83cc Merge "api-ref: add link to SLO docs from multipart-manifest=put param" 2019年04月04日 01:33:49 +00:00
Tim Burke
0294836d9b py3: test/unit/common/middleware/s3api/test_s3token.py
Change-Id: Ibbff151703395d517452c3d6927652506a9eab66
2019年04月02日 17:47:31 -07:00
Tim Burke
adc826f376 Clean up more things before running unit tests
Apparently some versions of py3 will drop symlinks in the venv.
Change-Id: I77c52b6ad776ab75c4f9713290cc42a1fcb6e0f7
2019年04月02日 16:48:29 -07:00
Zuul
161366bd0f Merge "Run docs tox env under py3" 2019年04月02日 19:24:37 +00:00
Tim Burke
e3e79a6e48 Remove "gross hack" for py3pep8 env; run releasenotes under py3
Change-Id: Ib853f79bc062ec550627342d0fc5b2b92029f25c
2019年03月29日 17:21:45 -07:00
Tim Burke
6c93c57685 Run docs tox env under py3
...and fix this one warning-treated-as-error that crept in since
https://github.com/openstack/swift/commit/d185b60
Change-Id: Id46ee3ab23e2703170191528427aaa2788aba1ee
2019年03月29日 16:16:53 -07:00
Tim Burke
ffe51501c2 api-ref: add link to SLO docs from multipart-manifest=put param
Drive-by: run api-ref tox env under py3.
Change-Id: Iebce47eabcb3b198d4aa7c1b8cfaf8f53300f7f9
2019年03月29日 16:07:59 -07:00
Sean McGinnis
10cb205fe0 Fix lower-constraint deps handling
When the lower-constraints tox target was added, it was assumed the
install_command was just running the install and that the dependencies
and constraints were being set using "deps = ".
This fixed the install_command and deps to follow the expected pattern
so the lower-constraints job actual does install the lower constraints.
Also:
 * raise the minimum for netifaces as the existing version would fail
 to load
 * pin oslo.log to the minimum required by our minimum
 keystonemiddleware
 * fix up some error handling for ancient versions of pastedeploy
 * specify that we shouldn't install xattr on a platform we don't
 support anyway, because reasons
Change-Id: Ie78c0dabe12e01109db2b6412166c3564b87ee96
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019年03月22日 11:41:56 -07:00
Zuul
65660faf69 Merge "py3: port formpost middleware" 2019年03月22日 02:55:31 +00:00
Tim Burke
c9773bfd26 Add non-voting py37 unit test job
Change-Id: I83f8f59023eabc97386481c18ed8bbf8fab64fa8
2019年03月13日 16:45:26 -07:00
Zuul
d2d6d59d5c Merge "py3: port proxy account controller" 2019年03月05日 01:01:14 +00:00
Zuul
65f2fd8c95 Merge "py3: port proxy container controller" 2019年03月05日 01:01:04 +00:00
Pete Zaitcev
860ae1e001 py3: port proxy account controller
Change-Id: I5a0d2108d01395aedb4ac18464ed2e38ad13ce84
2019年03月04日 15:16:27 -06:00
Tim Burke
45994e4d31 py3: port object updater
Change-Id: Ib1cd0659d5085ff9f8555bc08bd17a8f02f2efc0
2019年03月01日 15:40:15 -08:00
Tim Burke
349c549984 py3: port object auditor
Change-Id: Ic00273e5d3120f7daba1d3cbf084159f1e7d8bbb
2019年02月27日 14:07:33 -06:00
Pete Zaitcev
61e6ac0ebd py3: port formpost middleware
Change-Id: I8f3d4d5f6976ef5b63facd9b5723aac894066b74
2019年02月26日 23:06:52 -06:00
Zuul
330768d449 Merge "py3: port versioned_writes" 2019年02月22日 23:21:31 +00:00
Zuul
67010f0171 Merge "py3: port the container" 2019年02月22日 23:07:39 +00:00
Tim Burke
b4e4700765 py3: port some more middleware tests
* name_check
 * quotas
 * ratelimit
 * read_only
 * recon
Note that the middlewares themselves seem to be fine.
Fix proxy-logging for PEP-0479.
Change-Id: If47d09e8e8c09b9f50451f93d5b0803aa58743a7
2019年02月21日 09:44:02 -08:00
Pete Zaitcev
3be384c810 py3: port proxy container controller
Change-Id: Id74a93f10bc5c641d62141af33bef68e503f7e04
2019年02月20日 22:05:08 -06:00
Pete Zaitcev
575538b55b py3: port the container
This started with ShardRanges and its CLI. The sharder is at the
bottom of the dependency chain. Even container backend needs it.
Once we started tinkering with the sharder, it all snowballed to
include the rest of the container services.
Beware, this does affect some of Python 2 code. Mostly it's trivial
and obviously correct, but needs checking by reviewers.
About killing the stray "from __future__ import unicode_literals":
we do not do it in general. The specific problem it caused was
a failure of functional tests because unicode leaked into a field
that was supposed to be encoded. It is just too hard to track the
types when rules change from file to file, so off with its head.
Change-Id: Iba4e65d0e46d8c1f5a91feb96c2c07f99ca7c666
2019年02月20日 21:30:46 -06:00
Zuul
3c224af80c Merge "py3: port copy middleware" 2019年02月20日 02:25:51 +00:00
Tim Burke
ce261b12e6 py3: port versioned_writes
Change-Id: I1095262563eff92d6d0a399eb0d5f9d3045becf3
2019年02月19日 13:06:09 -08:00
Pete Zaitcev
db9c905849 py3: port copy middleware
Change-Id: I2701358f9f01f368c892a010a543ecc1f17684a3
2019年02月18日 21:32:12 -06:00
Pete Zaitcev
828a241caa py3: adapt proxy base controller
Change-Id: I83aa5d72084ca183e00dc6d69e417fba310a2c59
2019年02月07日 21:27:28 -06:00
Zuul
80b58553e8 Merge "py3: port object controller in proxy" 2019年02月06日 21:09:07 +00:00
Pete Zaitcev
988e719232 py3: port object controller in proxy
When looking at the tuple thing, remember that tuples are comparable
with ints in py2, but they do not compare like (100)[0]. Instead, they
are always greater, acting almost like MAX_INT. No wonder py3 banned
that practice.
We had a much of other noncomparables, but we dealt with them in
obvious ways, like adding key= to sorted().
Change-Id: I52e96406c3c1f39b98c1d81bdc057805cd1a6278
2019年02月06日 00:26:39 -06:00