The tests that return files, symlinks, directories, and empty dirs were
all only testing that the type of the return data was the same as what
was expected. By not testing the content, we overlooked a corner case in
which backends passed into the fileserver as a Python list would not be
handled properly. This has since been fixed in PR #36244, but these
tests will help keep this sort of issue from regressing.
1. Wasn't properly handling the backend being passed in as a Python list
2. Didn't work properly in the test suite due to the backend being an
ImmutableList instead of a list. This is because of how the opts are
loaded in the test suite, all mutable types are immutable versions of
themselves from salt.utils.immutabletypes.
This fixes a bug which causes backends passed as a python list to be
converted to a ``str`` (specifically a ``unicode`` type in PY2) and then
split, resulting in a backend that will never match anything.
This only affects runner and Salt Python API usage in which the
"backend" param to fileserver runner funcs is passed as a Python list.
* Fix timezones states on OS X
- This function was missing but required by the timezone states
* Added stand in functions for hwclock on OS X
- This fixes the timezone states which tries to use these functions
* salt/modules/gentoo_service.py: Work also for Alpine which uses OpenRC as well
* salt/modules/apk.py: Add main pkg function for Alpine Linux
* salt/modules/apk.py: Fix list_upgrades
* salt/modules/apk.py: Remove opkg occurences
* salt/modules/apk.py: Return 'Not available' instead of True for unavailable functions
* salt/modules/apk.py: Comment the unavailable functions
* salt/modules/apk.py: Implement pkg.latest_version
* salt/modules/apk.py: Some more spaces between functions
* salt/modules/apk.py: Include release version in pkg_version returned by pkg.list_pkgs to prevent missing packages returned on pkg.upgrade
* salt/modules/apk.py: Fix lint errors
* Improve command logging by stripping whitespace
The YAML ">" block scalar modifier introduces a trailing new line
character, which breaks up the command output formatting. This can
result in ERROR lines being harder to spot if among broken INFO lines.
* Improve state info log output