mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
455f40b0d2
The etcd modules were using bits and pieces of python-etcd directly and were using outdated exceptions to catch errors. These errors were causing issues when trying to use etcd modules for logic. A summary of changes - Most of the 'work' is now done in etcd_util - Removed import of python-etcd from states/etcd_mod and the returner - Added new tests for etcd_util - Put in proper exceptions and catches for python-etcd - Added support for ValueError catching. python-etcd doesn't support python 2.6 and raises ValueError when trying to format exceptions - Added watch function to etcd execution module - Added autospec to unit tests so hopefully less brittle - Added TTL and directory features to the set function *BACKWARDS INCOMPATIBLE CHANGES* All interfaces are still backwards incompatible. However, the returns from several of the etcd util functions have been changed. The old returns presented issues with certain test cases. For instance, a failed 'get' returned '', but a key with no value will also return ''. The same issues occured with the 'ls', 'tree' and 'set' functions. Trying to ls a blank directory returned the same result as a failed ls of a non-existent key. |
||
---|---|---|
.. | ||
__init__.py | ||
aggregation_test.py | ||
args.py | ||
async_test.py | ||
boto_test.py | ||
cache_test.py | ||
cloud_test.py | ||
context_test.py | ||
dictupdate_test.py | ||
etcd_util_test.py | ||
event_test.py | ||
filebuffer_test.py | ||
find_test.py | ||
format_call_test.py | ||
http_test.py | ||
immutabletypes.py | ||
kwarg_regex_test.py | ||
locales_test.py | ||
network.py | ||
path_join_test.py | ||
process_test.py | ||
rsax931_test.py | ||
runtime_whitespace_regex_test.py | ||
safe_walk_test.py | ||
schedule_test.py | ||
schema_test.py | ||
url_test.py | ||
utils_test.py | ||
validate_net_test.py | ||
verify_test.py | ||
vt_test.py | ||
warnings_test.py | ||
which_test.py |