salt/tests/unit/utils
Steve Hajducko 455f40b0d2 Refactor etcd modules
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.
2015-11-06 16:29:50 -08:00
..
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
aggregation_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
args.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
async_test.py Keep track of SyncWrapper's IOLoop usage 2015-07-29 08:48:33 -07:00
boto_test.py Revert "utils.boto: add temporary ability to use without loader" 2015-04-17 00:59:11 +00:00
cache_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
cloud_test.py Change cwd back to Salt's code dir 2015-07-28 12:22:53 +01:00
context_test.py Context cache decorator 2015-02-23 19:27:27 -07:00
dictupdate_test.py Whitespace lint 2015-10-13 09:15:12 -06:00
etcd_util_test.py Refactor etcd modules 2015-11-06 16:29:50 -08:00
event_test.py Sometimes the event system is just too fast 2015-09-04 15:52:06 +01:00
filebuffer_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
find_test.py Py3 compatibility fixes 2015-01-30 22:25:11 +00:00
format_call_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
http_test.py Add unit tests for new recursive function 2015-09-29 21:25:47 -06:00
immutabletypes.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
kwarg_regex_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
locales_test.py undo the memoization of contrived locale 2015-06-11 12:13:07 -06:00
network.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8 2015-07-20 13:55:14 -06:00
path_join_test.py Py3 compatibility fixes 2015-01-30 22:25:11 +00:00
process_test.py Py3 compatibility fixes 2015-01-30 22:25:05 +00:00
rsax931_test.py no-op 2015-06-15 17:08:43 -06:00
runtime_whitespace_regex_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
safe_walk_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
schedule_test.py Two more fixes to unit tests reflecting changes. 2015-08-13 10:53:37 -07:00
schema_test.py Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop 2015-08-17 17:06:59 -06:00
url_test.py Add http basic auth tests 2015-08-29 21:14:20 -05:00
utils_test.py specify encoding in test_to_str() 2015-06-09 11:13:19 -06:00
validate_net_test.py improve test tests/unit/utils/validate_net_test.py useability 2015-02-09 11:52:08 +01:00
verify_test.py Py3 compatibility fixes 2015-01-30 22:25:10 +00:00
vt_test.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-develop 2015-06-11 13:15:38 -06:00
warnings_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
which_test.py Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-02-18 11:55:29 -07:00