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/module_utils
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
..
aws aws.core in new aws dir in module utils - module with AnsibleAWSModule class and fail_json_aws (#25780) 7 years ago
basic Fix remote_tmp when become with non admin user (#42396) 6 years ago
cloud [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 7 years ago
common Provide kubernetes definition diffs in check_mode (#41471) 6 years ago
ec2 Provide kubernetes definition diffs in check_mode (#41471) 6 years ago
facts Fix pkg_mgr_name fact finding for Fedora (#40922) 6 years ago
gcp [GCP] New module GCP DNS Resource Record Set (#35920) 7 years ago
json_utils Port some tests away from nose as examples (#33437) 7 years ago
net_tools Fix for updating the name in case of host record and network view and also display meaningful error in case of connection timeout (#40597) 7 years ago
network Issue #39860: Add 'not_contains' method to parsing.py (#39874) 6 years ago
parsing Consolidate boolean/mk_boolean conversion functions into a single location 7 years ago
urls Add requests.Session like class (#37622) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py Porting tests to pytest (#33387) 7 years ago
test_database.py Revert "Update galaxy and database unit tests." 8 years ago
test_distribution_version.py facts: suse: Fix major version detection for SUSE (#41416) 6 years ago
test_known_hosts.py Porting tests to pytest (#33387) 7 years ago
test_postgresql.py Porting tests to pytest (#33387) 7 years ago
test_text.py Porting tests to pytest (#33387) 7 years ago