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
Adam Miller 562ff66a98 Fix pkg_mgr_name fact finding for Fedora (#40922)
* Properly handle default package manager vs apt

For distros where apt might be installed but is not the default
package manager for the distro, properly identify the default distro
package manager during fact finding and re-use fact finding from
DistributionFactCollector and instead of reimplementing small
portions of it in PkgMgrFactCollector

Add unit test to always check the apt + Fedora combination to test
the new code.

Fixes #34014

Signed-off-by: Adam Miller <admiller@redhat.com>

* remove q debugging output I accidentally left behind

Signed-off-by: Adam Miller <admiller@redhat.com>

* add os_family to the conditional so we're only hitting that code path when needed

Signed-off-by: Adam Miller <admiller@redhat.com>

* setup for a _check* pattern for general os_family group pkg_mgr checking

Signed-off-by: Adam Miller <admiller@redhat.com>

* use Mock.patch decorator for os.path.exists in TestPkgMgrFactsAptFedora

Signed-off-by: Adam Miller <admiller@redhat.com>
6 years ago
..
cli Add APB role_type to ansible-galaxy init (#36789) 7 years ago
config additional configmanager tests 7 years ago
contrib Update vmware_inventory (#26308) 7 years ago
errors test/: PEP8 compliancy (#24803) 7 years ago
executor module_common: handle None value for templar (#36651) 7 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock avoid caching invetnory sources in loader (#38242) 7 years ago
module_utils Fix pkg_mgr_name fact finding for Fedora (#40922) 6 years ago
modules ios_user module - implement sshkey option (#38782) 6 years ago
parsing fix decrypted vault utf8 values (#37539) 6 years ago
playbook Fix multiple var files combining (followup to #36357) 6 years ago
plugins Adds an ipmath filter (#41985) 6 years ago
template Remove duplicated "instead" word (#38800) 7 years ago
utils Move AWS placebo fixtures into test/units/utils so module_utils tests can use them (#37300) 7 years ago
vars Miscellaneous pylint fixes. 7 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 Fix bugs in ansible-test units command. (#24044) 8 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 7 years ago