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/plugins/inventory
Sam Doran 3a5bd5be18 [stable-2.9] Account for empty strings when splitting the host pattern (#62442) (#62679)
Improve tests
- add more unit test cases
- add specific integration test with more cases

Testing shows no major downside to calling .strip() twice in a comprehension vs. using a regular for loop and only calling .strip() once. Going with the comprehension for ease of maintenance and because comprehensions are optimized in CPython.
(cherry picked from commit 987265a6ef)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
..
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_aws_ec2.py add IAM role assumption to aws_ec2 inventory (#41637) 6 years ago
test_constructed.py Avoid erroring on host group confusion in keyed groups (#54099) 6 years ago
test_group.py support deterministic host ordering from group ancestors (#44067) 6 years ago
test_host.py Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
test_inventory.py [stable-2.9] Account for empty strings when splitting the host pattern (#62442) (#62679) 5 years ago
test_linode.py Add a Linode v4 dynamic inventory plugin. (#45902) 6 years ago
test_openstack.py fix constructed functionality in openstack inventory plugin (#48833) 6 years ago
test_script.py Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago