You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
7 years ago
..
aws Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
basic Use distro.id() instead of distro.name() (#52199) 7 years ago
cloud Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
common Use distro.id() instead of distro.name() (#52199) 7 years ago
docker docker_swarm_service: Add healthcheck option (#52419) 7 years ago
ec2 Update bare exceptions to specify Exception. 7 years ago
facts Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 7 years ago
gcp Enable additional pylint rules and resolve issues found. (#47221) 7 years ago
json_utils Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
net_tools Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
network NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 7 years ago
parsing Consolidate boolean/mk_boolean conversion functions into a single location 9 years ago
urls uri/win_uri: Make method a free text field (#49719) 7 years ago
xenserver Fix a bug that caused exception on XenServer 7.1 with Cummulative Update (#52303) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
conftest.py Python 3.8 collections compatibility fixes. 7 years ago
test_acme.py Code style adjustment. (#49329) 7 years ago
test_database.py Fix unit test parametrize order on Python 3.5. 7 years ago
test_distribution_version.py Distribution: Add support for Linux Mint 18.3 (#52224) 7 years ago
test_distro.py Fix unit tests on Python 3.8. 7 years ago
test_known_hosts.py Fix unit test parametrize order on Python 3.5. 7 years ago
test_postgresql.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
test_text.py Porting tests to pytest (#33387) 8 years ago
test_utm_utils.py Add optional headers to utm modules (#49856) 7 years ago
test_vmware.py Final round of moving modules to new import error msg (#51852) 7 years ago