f98d5d16ff8fca8ef1b6fd02b77b4ed546df3a8a
Commit Graph

146 Commits

Author SHA1 Message Date
Cyril Roelandt
f98d5d16ff Py3: Add working tests to tox.ini
Change-Id: Ifb737a0d3ba263b69945f30d9a31a42cb3ab645a
2018年12月13日 16:42:47 +01:00
Zuul
17e2a0c456 Merge "Py3: Port test/unit/test_ringcomposer.py" 2018年12月08日 10:05:29 +00:00
Cyril Roelandt
010cdc2a0c Py3: Fix test_memcache
Change-Id: I864de1d7ef0df07246388c7c108e1bb753e15de3
2018年12月03日 12:52:00 +01:00
Cyril Roelandt
6c8b4c87a5 Py3: Port test/unit/test_ringcomposer.py
Change-Id: I6cfa6aa87b00f3edecdd2dd8b3e5ef66380e36ae
2018年12月01日 03:28:52 +01:00
Tim Burke
37b814657e py3: port encryption
This got away from me a bit with the functional tests masquerading as
unit tests.
Change-Id: I1237c02eff96e53fff8f9661a2d85c4695b73371
2018年11月20日 01:30:04 -06:00
Zuul
168dc91bd9 Merge "py3: port account/container replicators" 2018年11月09日 19:43:50 +00:00
liuyamin
34e48d50bf Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I6ff57e0146da44ec736cfe7a61d45dd31ea65b90
2018年11月08日 10:26:41 +08:00
Tim Burke
bc4494f24d py3: port account/container replicators
Change-Id: Ia2662d8f75883e1cc41b9277c65f8b771f56f902
2018年11月06日 16:54:20 -08:00
whoami-rajat
7a21272627 Update min tox version to 2.3.2
The commands used by constraints need at least tox 2.3.2. Update to
reflect reality, which should help with local running of constraints
targets.
Change-Id: I0051938d70bdb3060981e8ce1cd2a72ca8d292ff
2018年11月02日 19:01:06 +00:00
Zuul
a13e44b39d Merge "py3: adapt common/db_replicator.py" 2018年11月01日 10:34:00 +00:00
Zuul
d75c29a63b Merge "py3: port internal_client" 2018年10月27日 01:04:32 +00:00
Pete Zaitcev
654187e1fe py3: adapt common/db_replicator.py
Another one of those almost-empty patches. This time my excuse is
that this one is needed in a couple of places (account & container).
Change-Id: Ieb8960763c64f88981b68884bfec92c17ebb4708
2018年10月22日 21:42:58 -05:00
Pete Zaitcev
6676d74f8f py3: everything account except the real things
The the 80% of the work still remain in server and replicator,
but let's knock this out.
Change-Id: I1e1dee8f8c77212183b0ef2b574b57ad1051d57e
2018年10月17日 23:28:47 -05:00
Pete Zaitcev
28a582f3f4 py3: adapt account/backend.py and utils.py
Gradatim Ferociter
Change-Id: I6f3fac450c14f8dbc549ab2b0645a31aa0cece89
2018年10月15日 22:42:22 -05:00
Pete Zaitcev
e3a5b63cc7 py3: Adapt db.py
Change-Id: I0dab4ff013f300396cff7313bc27b9d5644fe8a7
2018年10月04日 17:09:34 -05:00
Tim Burke
c90d34bd02 py3: port tempauth
Note that the user DB is stored in-memory as native strings, so we do
some crazy-decoding to make comparisons for auth decisions. Seems to
keep the config handling mostly sane, though.
I maybe need to look harder at container ACLs?
Change-Id: Ia58698c9b30d2211eeee8ecb3bbdd1c26fa4034d
2018年10月01日 12:52:22 -07:00
Tim Burke
ae496630b6 py3: port internal_client
Change-Id: I4e69beac30be1d8726849aacb603af5e2aeecaf8
2018年09月25日 13:46:59 -07:00
Tim Burke
ddd5cc1592 py3: port direct_client
I wanna see how far I can get *without* mucking around in swob and
request_helpers. Maybe eventually we can get some helpers out there to
make working with UTF-8-pretending-to-be-Latin-1 strings better, but for
the time being, I feel more at ease *embracing* the crazy.
Change-Id: I0b9983a182daedd9dbec483b805d263238fcfac7
Co-Authored-By: Pete Zaitcev <zaitcev@kotori.zaitcev.us>
2018年09月25日 13:46:59 -07:00
Zuul
ec66c6cbbe Merge "py3: Port listing_formats middleware" 2018年09月25日 20:13:28 +00:00
Zuul
fc9ab28927 Merge "py3: port request_helpers" 2018年09月25日 20:01:10 +00:00
Tim Burke
1b0172f5d3 py3: Port listing_formats middleware
Change-Id: I4e2712a4a38b5cab3e31cc75bb162e73b4f5dafb
2018年09月17日 13:08:12 -07:00
Zuul
956172623c Merge "fixed a manpage and added the manpage syntax checker to pep8 jobs" 2018年09月15日 17:48:49 +00:00
John Dickinson
0c97888bcb fixed a manpage and added the manpage syntax checker to pep8 jobs
also a drive-by fix to the bindep job--it doesn't need to install
Change-Id: Ic9b68bc60bfbf21b45a1b7f9d7ff9998e01ddd26
2018年09月15日 10:31:49 -06:00
Zuul
bfa4c6295d Merge "py3: include test_base_storage_server" 2018年09月15日 08:04:42 +00:00
Tim Burke
2ef21ac05d py3: port request_helpers
Change-Id: I6be1a1c618e4b4fa03b34dad96f378aca01e8e08
2018年09月15日 01:33:34 -06:00
Tim Burke
b4567e66ec py3: include test_base_storage_server
Apparently this was already passing? Not a whole lot there...
Change-Id: I029fe2e7f4162765eee0a390793402523d0975fa
2018年09月15日 00:47:35 -06:00
Samuel Merritt
114220279b py3: port list_endpoints
Change-Id: Ic6d0532f9f42b4d57a12aafeec5d34baffab6e23
2018年09月14日 13:53:06 -06:00
Tim Burke
df954e2709 py3: port bufferedhttp (hopefully)
I've at least tried it out with a py3 proxy, and it seems to work out
OK. I haven't tried killing the socket and verifying that it's actualy
dead, but getting a hold of _real_close *seems like* what we want?
At least the three (!!) tests pass.
Change-Id: Ic08c26185d63a36a5422793d81f621e0698fa572
2018年08月24日 11:30:26 +00:00
Doug Hellmann
ba8447e056 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Iac4a202a1d723822d10f4d34a397eff9de3f2108
add the job in project-config:
Depends-On: https://review.openstack.org/555034
remove branch optimiazation in check and add swift exclusions (series):
Depends-On: https://review.openstack.org/560109
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018年07月27日 01:59:30 +00:00
Tim Burke
783c7f6117 py3: port proxy/controllers/info.py
Yes, this means you can now start a proxy-server process on py3! And it
will give you something useful on /info!
Apparently you can even get auth tokens from tempauth, although the
tempauth unit tests don't pass yet.
Change-Id: I86ead2989b5934a7584cdd75719ce239826e01ec
2018年06月28日 09:58:44 -07:00
Samuel Merritt
306f9a150f py3: port domain_remap tests
The domain_remap middleware didn't need to change, only its tests.
Change-Id: I5edf05b609ce263708f851219c38c1bd1b645a6f
2018年06月26日 13:20:49 -07:00
Samuel Merritt
081ff36e6e py3: port crossdomain
Change-Id: I83a35f066d69edf39c74fd22c7fb248b5320d21f
2018年06月26日 13:20:49 -07:00
Samuel Merritt
50ea4e1e08 py3: port healthcheck
Typed "b" in a half-dozen places and fixed a typo in a test name.
Change-Id: Idcb8b2eeef5b545eb0944cc22b7c7961e8c2f8f0
2018年06月26日 13:20:49 -07:00
Samuel Merritt
3920b88daa py3: port catch_errors
Today's diff is brought to you by the letter "b".
Change-Id: I074c1ff3f1232a899c101f2856dff4a881a6fe77
2018年06月21日 17:23:41 -07:00
Samuel Merritt
e0b4eb225c py3: fix test_proxy_logging.py
Only the tests needed to change, and it was nearly all just prepending
"b" to a bunch of string literals.
Change-Id: Id5317e471c04a05627438c281bb0d6a97cf6a8a4
2018年06月21日 17:18:42 -07:00
Tim Burke
2b19c26498 py3: Port common/swob
Change-Id: I31408f525ba9836f634a35581d4aee6fa2c9428f
2018年06月20日 16:52:02 -07:00
Tim Burke
0694e51eb7 py3: Port common/constraints
Alternate approach to https://review.openstack.org/#/c/559902
Change-Id: I1e244c231753b8f4b6f1cf95cb0ae4c3c959ae0f
2018年06月20日 16:51:25 -07:00
Tim Burke
2637fec004 Add py36 testenv
Ubuntu 18.04 ships 3.6.5; may as well have a testenv handy for it.
Change-Id: Ibea05bc879685fab148cde1b19510e83f0639f5d
2018年06月20日 16:51:25 -07:00
John Dickinson
fb3b43f713 Added PyPI validation check for the readme.
See https://review.openstack.org/#/c/571007/ and
https://review.openstack.org/#/c/570999/ for context.
Change-Id: Ib6045de3cb9097ed7e6d48646109f35612cbbc74
2018年05月30日 07:55:42 -07:00
Zuul
3313392462 Merge "Import swift3 into swift repo as s3api middleware" 2018年04月30日 16:00:56 +00:00
Kota Tsuyuzaki
636b922f3b Import swift3 into swift repo as s3api middleware
This attempts to import openstack/swift3 package into swift upstream
repository, namespace. This is almost simple porting except following items.
1. Rename swift3 namespace to swift.common.middleware.s3api
1.1 Rename also some conflicted class names (e.g. Request/Response)
2. Port unittests to test/unit/s3api dir to be able to run on the gate.
3. Port functests to test/functional/s3api and setup in-process testing
4. Port docs to doc dir, then address the namespace change.
5. Use get_logger() instead of global logger instance
6. Avoid global conf instance
Ex. fix various minor issue on those steps (e.g. packages, dependencies,
 deprecated things)
The details and patch references in the work on feature/s3api are listed
at https://trello.com/b/ZloaZ23t/s3api (completed board)
Note that, because this is just a porting, no new feature is developed since
the last swift3 release, and in the future work, Swift upstream may continue
to work on remaining items for further improvements and the best compatibility
of Amazon S3. Please read the new docs for your deployment and keep track to
know what would be changed in the future releases.
Change-Id: Ib803ea89cfee9a53c429606149159dd136c036fd
Co-Authored-By: Thiago da Silva <thiago@redhat.com>
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
2018年04月27日 15:53:57 +09:00
Samuel Merritt
80858077e5 py3: port gatekeeper
There were a couple of cleanups in swob as part of this. First,
status lines are always native str objects (as PEP 3333 wants), rather
than being encoded to bytes under py3. Second, _resp_body_property
now works (only) with bytestrings from the app iter.
In gatekeeper, we now deal with dict.items() returning an object of
type "dict_items" in py3, not a list. Also fixed a NameError caused by
py2's list comprehensions leaking variables to function scope where
py3's don't.
Change-Id: I6da8eceb91edb2b47aa345d61b825c7199a5569b
2018年04月20日 13:15:03 -07:00
Zuul
a09f663bfd Merge "py3: port cli recon tests" 2018年04月14日 00:47:00 +00:00
Matthew Oliver
817ca078e1 py3: port cli recon tests
Also a drive by HASH_PATH_PREFIX/SUFFIX bytesting fix which was
breaking ring and relinker tests.
Change-Id: I1db8f102361770cfed2b12f689789d1e8c21c3e4
2018年04月13日 06:39:43 +00:00
Samuel Merritt
c42f15f94d Add ability to run specific tests in py35 tox environment.
This lets you run something like
 $ tox -e py35 -- -s test.unit.common.test_swob
and just run the swob tests. This is handy if you've got one or two
test failures to debug or if you're trying to get another test file
passing under Python 3.
Also removed the old py34 environment. Nothing uses it.
Change-Id: I244b8903ef0a445abd028004bf02d6c581a8afe2
2018年04月10日 17:00:54 -07:00
wangqi
a027f2c105 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I26dc41c7df57bf79db531c6e67e148e01c17e992
2018年03月26日 12:53:37 +00:00
Matthew Oliver
e84ed57a72 py3: port cli form_signature and unit tests
This patch ports the form_signature cli `swift-form-signature`
and it's corrisponding tests to py3.
In essence in Py3 the HMAC function expects binary strings.
Change-Id: I5dded4ceb80f0cc595403775e8f9c17873e1e37b
2018年03月13日 06:19:44 +00:00
Romain LE DISEZ
335899f89f Functional tests for staticweb middleware
Change-Id: I6bc70039c1b99b8a5bf5a30e9c6877d4f0aa638d
2018年03月07日 12:36:20 -08:00
Tim Burke
36c42974d6 py3: Port more CLI tools
Bring under test
 - test/unit/cli/test_dispersion_report.py
 - test/unit/cli/test_info.py and
 - test/unit/cli/test_relinker.py
I've verified that swift-*-info (at least) behave reasonably under
py3, even swift-object-info when there's non-utf8 metadata on the
data/meta file.
Change-Id: Ifed4b8059337c395e56f5e9f8d939c34fe4ff8dd
2018年02月28日 21:10:01 +00:00
Tim Burke
624b5310b4 py3: port common/wsgi.py
Note that we're punting on configuring socket buffer sizes (for now)
Change-Id: I285a9b521fd0af381a227e0e824bc391817547f4
2018年02月28日 12:49:13 -05:00