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
Sam Doran 091c7c46d3 [stable-2.7] Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) (#53541)
* [stable-2.7] 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.
(cherry picked from commit 1d91e03119)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* Use different import for 2.7
7 years ago
..
cache Update ansible-test sanity command. (#31958) 8 years ago
env [stable-2.7] Add `env` command to ansible-test and run in CI. (#50176) 7 years ago
integration docker_container: show warnings, fix/improve tests (#53440) 7 years ago
legacy vultr_server: fix multiple ssh keys not handled (#50337) 7 years ago
results Collect data from integration test runs. (#28650) 8 years ago
runner OpenSUSE - Add OpenSUSE 15 test containers (#52793) 7 years ago
sanity Install the NuGet package provider if needed (#52129) 7 years ago
units [stable-2.7] Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) (#53541) 7 years ago
utils [stable-2.7] Fix run.py --branch argument. 7 years ago