summaryrefslogtreecommitdiff
path: root/tooz/drivers/zake.py
Commit message (Collapse)AuthorAgeFilesLines
* Stop to use the __future__ module.Hervé Beraud2020-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I95809cf4035a6bc487b24f9e91aaa715921ad842
* Trivial: Update pypi url to new urlmelissaml2018-04-211-1/+1
| | | | | | | | | Pypi url changed from [1] to [2] [1] https://pypi.python.org/pypi/<package> [2] https://pypi.org/project/<package> Change-Id: I8c515aa5662e020c76672a45555dfa6572267604
* Expose timeout capabilities and use them for testsJulien Danjou2016-06-091-0/+1
| | | | Change-Id: I5b6ee43e6a6b91859dacedb9791da74e247cd12b
* Add programatic introspection of drivers characteristic(s)Joshua Harlow2016-01-071-0/+9
| | | | Change-Id: Icf187db9ba7d076b1a0f3cc9343acb0eaa1862cb
* Provide and use a options collapsing functionJoshua Harlow2015-05-041-1/+1
| | | | | | | | | | | | | | | | Instead of having each driver index the last value of each option, when all current drivers do not actually care about any of the other indexes we can just use and provide a option collapsing function that we by default apply to all the existing drivers options (to avoid needing to index by -1). This avoids a confusion point for new folks, and one that does not currently really provide any value (no driver in tree besides one option in the redis driver uses/consumes or understands multiple options in the first place). Change-Id: Ia2898d84fd0e54871b829f4a95786a33accc20b8
* Beef up the docstrings on the various driversJoshua Harlow2015-04-081-2/+8
| | | | Change-Id: I1ca05629cc5f28c1248767bb18384a29801bece2
* Allow coordinator non-string options and use themJoshua Harlow2015-02-121-1/+5
| | | | | | | | | | | | | | | | To allow the zake driver to use a pre-existing storage backend (for example, shared with a taskflow test that also uses zake) we need a way to provide non-query-string options and to get those options to the zake driver for usage. This approach allows the `get_coordinator` function to take **kwargs and have those take precedence over the options found with the same name in the urls query string (and merge those together to form the coordinators option dictionary that exists already). Change-Id: Ibc745927eccac050992227410cca393d956f8c44
* Change inline docs about class fake storage variableJoshua Harlow2014-09-161-1/+5
| | | | | | | | Adjust the docs to better describe why a fake storage class attribute exists and how it is used and what it represents compared to a real zookeeper setup. Change-Id: I255ccd83c8033266e9cee09a343468ae4e0f2bfd
* Let zake act as a in-memory fully functional driverJoshua Harlow2014-09-151-33/+4
| | | | | | | | | The zake driver should theoretically function the same as the non-local driver so all the same kazoo functions should work, without the whole distributed part as they work with the regular zookeeper backed kazoo driver. Change-Id: I19df0da0e58c5624ca1b10f61c42510f1f104847
* Switch to a custom NotImplemented errorJulien Danjou2014-09-121-7/+8
| | | | | | | | | | | Some code in the drivers might actually raise the standard NotImplemented error, and that would be a bug to skip a test if that was the case. In that case we want the test to fail. So let's switch to a custom exception that is used to skip the test if it's raised. Change-Id: Ideafee0b1f008ff32724fb98d6a477bd3976104d
* Move Zake driver code to separated Python moduleDina Belova2014-09-051-0/+62
That is needed to prevent Zake driver load in real-life Zookeeper usage - currently we had the situation when even if you want to use just KaZoo, you needed to install partially test-requierements (zake package). Change-Id: I9664fda2d6e76a6e48776b4a6d92af4c4baf1425