salt/tests/unit
hlub 1494c44918 Refactored GlusterFS support
Usage of GlusterFS states did not change except the state 'created' was deprecated in favor of more descriptive name 'volume_present'.
- Improved separation of functionality in the execution module from the states. Module functions now return booleans instead of varying
strings. Parsing those strings in the states was very error-prone. In glusterfs.peer() function this problem was earlier solved by returning
a dict containing both the exit value and output string of the gluster call. This could be a good idea, although without calling the gluster
calls twice, and applied to other functios too.
- Calls to gluster are now logged more verbosely, while a failing call no longer raises an immediate exception.
- Improved checking and verbosity in the state level. Cleaned code a lot, removed some bugs and other odd behaviour.
- Updated tests to match the changes. Refactored some test code to be more readable. Added assertions to test that some functions are not
called when things are already in the desired state. Preferred changing behaviour of the mocked functions while proceeding instead of listing
all of the return values first.
- Replaced glusterfs.list_peers() with more informative peer_status() and deprecated the old name. The function now returns a dict with UUIDs as its keys.
- glusterfs.info() can now be called without volume name. It always returns a dictionary. Use this function instead of status() in sates.
- Functions glusterfs.delete() and glusterfs.create() were deprecated and renamed to delete_volume() and create_volume().
2016-02-25 10:46:43 -07:00
..
beacons Added user requirement to the glxinfo beacon 2016-01-07 15:49:32 +01:00
cli Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-04-16 12:15:44 -06:00
cloud Fix mock patch module name 2015-11-05 10:45:30 -07:00
config Adjust test for syndic config 2015-12-02 09:35:48 -07:00
modules Refactored GlusterFS support 2016-02-25 10:46:43 -07:00
netapi Saltnado provide also get parameters to the context 2016-02-15 10:09:02 +01:00
output
pillar Merge branch '2016.3' into 'develop' 2016-02-12 14:38:50 -07:00
renderers rewrite GPG unit tests 2015-11-16 09:36:29 -07:00
returners update smtp returner unit tests 2015-05-11 00:23:28 -06:00
runners Updated tests to work with code deprecations 2016-02-11 11:22:35 -07:00
serializers add deserializer test, fix deserialization 2015-11-15 14:14:42 -06:00
states Refactored GlusterFS support 2016-02-25 10:46:43 -07:00
templates Derp 2015-06-10 15:50:53 -06:00
transport Skipping Async tests 2015-09-24 13:41:58 -06:00
utils Merge pull request #31067 from jfindlay/deprecate_env 2016-02-18 14:42:10 -07:00
__init__.py
auth_test.py Fixed use of assert_has_calls in tests. 2015-11-25 15:31:20 +03:00
client_test.py Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-03-16 15:12:02 -06:00
context_test.py Python3 compat for context_test 2015-10-23 11:30:21 -07:00
crypt_test.py py3: fix salt/crypt.py 2015-06-09 10:19:06 -06:00
files_test.py
highstateconf_test.py Fix test 2015-08-18 08:51:00 -06:00
log_test.py Manual merge of #24414 per thatch45 2015-06-06 07:47:52 -06:00
minion_test.py Fix misc tests 2015-04-07 20:53:27 -07:00
payload_test.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-develop 2015-06-11 13:15:38 -06:00
pillar_test.py Remove recurse_list from pillar_source_merging_strategy and add pillar_merge_list (bool) instead 2016-01-19 15:06:30 -07:00
pydsl_test.py tests/unit/pydsl_test.py: remove env support 2016-02-16 20:33:23 -07:00
pyobjects_test.py Allow recursive salt:// imports 2016-01-20 11:29:00 -08:00
simple.py
spm_test.py Fixup test for spm verbose PR 2015-12-01 11:27:03 -07:00
stateconf_test.py Allow parent relative includes in state files 2015-07-21 16:32:38 +10:00
template_test.py
version_test.py