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
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.
6 years ago
..
cli Remove unused internal -a argument and functionality (#52602) 6 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config Fix encoding issues with file paths. (#50830) 6 years ago
contrib Fix vmware_inventory unit tests so they run. 6 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 6 years ago
executor Move _handle_no_log_values() out of basic.py (#48628) 6 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
module_utils Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 6 years ago
modules itential iap_start_workflow module (#51238) 6 years ago
parsing Fieldattribute inheritance with defaults (#50891) 6 years ago
playbook Become plugins (#50991) 6 years ago
plugins Add support for Windows hosts in the SSH connection plugin (#47732) 6 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 6 years ago
template Native Jinja2: raise undefined error immediately (#52237) 6 years ago
utils Move the arguments module into cli/ and context_objects into utils 6 years ago
vars Fix inventory cache interface (#50446) 6 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
ansible.cfg Fix ansible-test config management. 7 years ago
conftest.py Run unit tests in parallel. (#45812) 6 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 7 years ago
test_context.py Save the command line arguments into a global context 6 years ago