ansible/test/units/module_utils
Sam Doran 1d91e03119
Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298)
Fixes a bug where parse_distribution_file_ClearLinux() was called on CoreOS (and probably many other distros) and it returned True since it successfully parses the distribution file. Since this file exists on many Linux distributions and they are a very similar format, add an additional check to make sure it is Clear Linux.

Change the order in which distribution files are processed so NA is last. This prevents a match on CoreOS hosts since they also have /etc/os-release and the called matching function for NA is very general and will match CoreOS.

* Add changelog

* Add unit tests

Only add tests for Clear Linux parsing since that was the cause of this issue.
2019-03-08 10:40:49 -05:00
..
aws Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
basic Use distro.id() instead of distro.name() (#52199) 2019-03-07 13:25:59 -05:00
cloud Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
common Use distro.id() instead of distro.name() (#52199) 2019-03-07 13:25:59 -05:00
docker docker_swarm_service: Add healthcheck option (#52419) 2019-02-18 09:46:14 +00:00
ec2 Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
facts Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 2019-03-08 10:40:49 -05:00
gcp Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
json_utils Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
net_tools Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
network NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 2019-02-25 14:17:56 +00:00
parsing
urls uri/win_uri: Make method a free text field (#49719) 2019-02-28 15:55:18 -05:00
xenserver Fix a bug that caused exception on XenServer 7.1 with Cummulative Update (#52303) 2019-02-19 12:36:57 +00:00
__init__.py
conftest.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
test_acme.py Code style adjustment. (#49329) 2018-11-29 21:57:32 +01:00
test_database.py
test_distribution_version.py Distribution: Add support for Linux Mint 18.3 (#52224) 2019-02-18 08:28:04 +05:30
test_distro.py Fix unit tests on Python 3.8. 2019-02-13 01:03:06 -08:00
test_known_hosts.py
test_postgresql.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_text.py
test_utm_utils.py Add optional headers to utm modules (#49856) 2019-01-17 19:06:50 +05:30
test_vmware.py Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00