salt/tests/unit
Nicole Thomas f9ffcb697a [2016.3] Merge forward from 2015.8 to 2016.3 (#32784)
* json encode arguments passed to an execution module function call

this fixes problems where you could pass a string to a module function,
which thanks to the yaml decoder which is used when parsing command line
arguments could change its type entirely. for example:

__salt__['test.echo')('{foo: bar}')

the test.echo function just returns the argument it's given. however,
because it's being called through a salt-call process like this:

salt-call --local test.echo {foo: bar}

salt thinks it's yaml and therefore yaml decodes it. the return value
from the test.echo call above is therefore a dict, not a string.

* Prevent crash if pygit2 package is requesting re-compilation of the e… (#32652)

* Prevent crash if pygit2 package is requesting re-compilation of the entire library on production systems (no *devel packages)

* Fix PEP8: move imports to the top of the file

* Move logger up

* Add log error message in case if exception is not an ImportError

* align OS grains from older SLES with current one (#32649)

* Fixing critical bug to remove only the specified Host instead of the entire Host cluster (#32640)

* yumpkg: Ignore epoch in version comparison for explict versions without an epoch (#32563)

* yumpkg: Ignore epoch in version comparison for explict versions without an epoch

Also properly handle comparisions for packages with multiple versions.

Resolves #32229

* Don't attempt downgrade for kernel and its subpackages

Multiple versions are supported since their paths do not conflict.

* Lower log level for pillar cache (#32655)

This shouldn't show up on salt-call runs

* Don't access deprecated Exception.message attribute. (#32556)

* Don't access deprecated Exception.message attribute.

To avoid a deprecation warning message in logs.
There is a new function salt.exceptions.get_error_message(e) instead.

* Fixed module docs test.

* Fix for issue 32523 (#32672)

* Fix routes for redhat < 6

* Handle a couple of arguments better (Azure) (#32683)

* backporting a fix from develop where the use of splay would result in seconds=0 in the schedule.list when there was no seconds specified in the origina schedule

* Handle when beacon not configured and we try to enable/disable them (#32692)

* Handle the situation when the beacon is not configured and we try to disable it

* a couple more missing returns in the enable & disable

* Check dependencies type before appling str operations (#32693)

* Update external auth documentation to list supported matcher. (#32733)

Thanks to #31598, all matchers are supported for eauth configuration.
But we still have no way to use compound matchers in eauth configuration.
Update the documentation to explicitly express this limitation.

* modules.win_dacl: consistent case of dacl constants (#32720)

* Document pillar cache options (#32643)

* Add note about Pillar data cache requirement for Pillar targeting method

* Add `saltutil.refresh_pillar` function to the scheduled Minion jobs

* Minor fixes in docs

* Add note about relations between `pillar_cache` option and Pillar Targeting
to Master config comments with small reformatting

* Document Pillar Cache Options for Salt Master

* Document Minions Targeting with Mine

* Remove `saltutil.refresh_pillar` scheduled persistent job

* Properly handle minion failback failure. (#32749)

* Properly handle minion failback failure.

Initiate minion restart if all masters down on __master_disconnect like
minion does on the initial master connect on start.

* Fixed unit test

* Improve documentation on pygit2 versions (#32779)

This adds an explanation of the python-cffi dep added in pygit2 0.21.0,
and recommends 0.20.3 for LTS distros. It also links to the salt-pack
issue which tracks the progress of adding pygit2 to our Debian and
Ubuntu repositories.

* Pylint fix
2016-04-25 15:26:09 -06:00
..
beacons Added user requirement to the glxinfo beacon 2016-01-07 15:49:32 +01:00
cli
cloud Fix line endings 2016-04-20 01:32:49 +10:00
config Merge branch '2015.8' into '2016.3' 2016-04-05 15:09:27 -06:00
grains Rename core.py to core_test.py 2016-02-24 10:15:01 -07:00
modules Support unicode in all GECOS fields on FreeBSD (#32794) 2016-04-25 15:19:13 -06:00
netapi Pylint fix from wierd git behavior 2016-02-22 09:24:13 -07:00
output
pillar Merge remote-tracking branch 'upstream/2015.8' into merge-forward-2016.3 2016-02-11 22:33:49 -07:00
renderers renderers.gpg unit tests: mock gpg command 2016-03-10 10:57:21 -07:00
returners update smtp returner unit tests 2015-05-11 00:23:28 -06:00
runners Revert "Deprecated code removed. " 2016-02-10 11:40:48 -07:00
serializers add deserializer test, fix deserialization 2015-11-15 14:14:42 -06:00
states Deprecate 'user' and 'group' in state cmd (#32613) 2016-04-15 13:30:56 -06:00
templates Derp 2015-06-10 15:50:53 -06:00
transport transport.tcp unit tests: disable hanging tests 2016-03-10 10:57:21 -07:00
utils Merge branch '2015.8' into '2016.3' 2016-04-07 16:28:59 -06: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 Skipped test if zeromq is not transport 2016-03-22 16:01:18 -06:00
context_test.py Python3 compat for context_test 2015-10-23 11:30:21 -07:00
crypt_test.py Bugfix: salt-key crashes if tries to generate keys to the directory w/o write access (#32436) 2016-04-13 08:15:37 -06:00
daemons_test.py [2016.3] Merge forward from 2015.8 to 2016.3 (#32784) 2016-04-25 15:26:09 -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
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 Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop 2015-12-01 15:31:03 -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