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
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
..
cache Update ansible-test sanity command. (#31958) 7 years ago
integration Fix pkg_mgr_name fact finding for Fedora (#40922) 6 years ago
legacy Vultr: Introducing vr_startup_script_facts module (#43004) 6 years ago
results Collect data from integration test runs. (#28650) 7 years ago
runner Fix azure_rm_keyvaultkey/azure_rm_keyvaultsecret bugs (#41683) 6 years ago
sanity dnsimple: refactor dnsimple module (#42548) 6 years ago
units Fix pkg_mgr_name fact finding for Fedora (#40922) 6 years ago
utils Remove unwanted containers at CI job start. 6 years ago