1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/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 Consolidate boolean/mk_boolean conversion functions into a single location 2017-07-17 11:48:05 -07:00
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 Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
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 Fix unit test parametrize order on Python 3.5. 2018-09-17 22:45:42 -07:00
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 Fix unit test parametrize order on Python 3.5. 2018-09-17 22:45:42 -07:00
test_postgresql.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_text.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
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