salt/tests/unit
Georges Racinet fb586c6dce
Backported issue #42713 to 2017.7
Cherry-picked and squashed the two commits from the develop branch
(details at the end of this message)

The unit test module didn't exist at all on 2017.7, hence a conflict during
cherry picking, resolved by introducing only the new tests (the other ones
don't pass as is on 2017.7)

Also, the mock in unit tests for mine.get had to be adapted,
because the return of salt.utils.minions.CkMinions._check_compound_minions()
takes a different form on 2017.7 (just the list of minions).

Original cherry-picked commits:

commit 115ebef6a089dedf8dbadd3b4cca768adbb4a710
Author: Georges Racinet <gracinet@anybox.fr>
Date:   Wed Nov 8 18:02:29 2017 +0100

    Unit test for backwards compatibility of mine.get

    Could not find calls to RemoteFuncs in unit tests, therefore started a
    new one, hope it's in the appropriate place.

    The test replaces the caceh by its own (very limited) one. It's quite
    possible it could be improved by reusing another one meant for unit tests.

commit dc884478399355f3fbea8626a8366b933580dee0
Author: Georges Racinet <gracinet@anybox.fr>
Date:   Mon Oct 30 13:49:13 2017 +0100

    Backwards compat for mine.get on pre-Nitrogen minions

    With this change, the master will accept `expr_form` from
    its minions doing a `mine.get`, which is what minions versions
    before Nitrogen would do. This solves issue #42713.

    In case both `tgt_type` and `expr_form` are present, the former
    gets precedence.

    Performance-wise, this adds a single dict lookup for minions
    running Nitrogen onwards, and two for pre-Nitrogen minions.
    This is, in my opinion, acceptable.
2017-11-29 16:17:52 +01:00
..
acl
beacons Change expected return for Windows 2017-09-25 15:06:44 -06:00
cache Update localfs cache tests to reflect changes to func naming 2017-08-17 17:19:34 -05:00
cli
cloud Fix unit.cloud.clouds.test_ec2 for Windows 2017-09-08 15:36:52 -06:00
config Merge pull request #41969 from twangboy/win_unit_test_config 2017-06-28 08:18:07 -07:00
daemons Backported issue #42713 to 2017.7 2017-11-29 16:17:52 +01:00
engines Drop @patch usage 2017-04-28 13:36:42 +01:00
fileserver Fix is_windows detection when USERNAME missing 2017-08-29 10:16:21 -06:00
grains Update unit tests for numeric osmajorrelease 2017-04-11 12:36:36 -05:00
loader
modules Disable pylint warning 2017-11-22 10:36:21 -05:00
netapi Drop @patch usage 2017-04-28 13:36:42 +01:00
output Properly handle non native strings under py2 and py3 2017-04-28 13:33:36 +01:00
pillar Add error-handling function to shutil.rmtree 2017-07-11 13:08:00 -06:00
renderers Drop @patch usage 2017-04-28 13:36:42 +01:00
returners Get more accurate currnet time in local_cache 2017-07-05 12:19:20 -06:00
runners
serializers
ssh
states Format patching with statements for easier reading 2017-11-09 14:32:21 -07:00
templates Fix test to reflect changes in YAML dumper 2017-11-14 13:43:39 -06:00
transport Merge branch '2016.11' into '2017.7' 2017-06-28 10:48:37 -06:00
utils Pass root_dirs to the win_verify_env function 2017-11-13 13:05:23 -07:00
__init__.py
test_auth.py Skip tests that are failing on PAM eauth 2017-10-18 14:03:10 -06:00
test_client.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_conf.py
test_context.py
test_crypt.py Remove chown mock, fix path seps 2017-07-21 16:36:07 -06:00
test_daemons.py Fix pickling errors on Windows 2017-10-19 11:50:23 -06:00
test_doc.py Use regex to split 2017-11-09 16:24:19 -07:00
test_fileclient.py Fix unit.test_fileclient 2017-08-15 16:34:03 -06:00
test_files.py
test_log.py
test_map_conf.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_minion.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_payload.py
test_pillar.py Fix unit.test_pillar for Windows 2017-10-10 13:44:58 -06:00
test_pydsl.py Fix test_pydsl on Windows 2017-10-26 10:18:07 -06:00
test_pyobjects.py Add test for pyobjects priority 2017-06-28 19:48:46 -05:00
test_simple.py
test_spm.py Patch calls to salt.client.Caller and salt.client.get_local_client in spm unit tests 2017-05-04 14:30:49 -06:00
test_state.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_stateconf.py Use os.sep for path 2017-08-16 15:59:10 -06:00
test_target.py
test_template.py Merge branch '2016.11' into 'develop' 2017-04-05 13:02:14 -06:00
test_test_module_names.py Use os.path.join to create paths 2017-08-23 14:43:44 -06:00
test_transport.py Rename transport_test file to test_transport and update imports for pytest 2017-06-28 11:35:13 -06:00
test_version.py
test_zypp_plugins.py Fix zypp_plugins unit test for Python 3 2017-06-27 09:26:35 +01:00