1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/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>
2018-07-23 10:56:09 -04:00
..
aws aws.core in new aws dir in module utils - module with AnsibleAWSModule class and fail_json_aws (#25780) 2017-07-11 14:01:35 -07:00
basic Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
cloud [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 2017-08-08 08:56:46 -04:00
common Provide kubernetes definition diffs in check_mode (#41471) 2018-07-11 16:32:03 +10:00
ec2 Provide kubernetes definition diffs in check_mode (#41471) 2018-07-11 16:32:03 +10:00
facts Fix pkg_mgr_name fact finding for Fedora (#40922) 2018-07-23 10:56:09 -04:00
gcp [GCP] New module GCP DNS Resource Record Set (#35920) 2018-04-12 07:31:43 -04:00
json_utils Port some tests away from nose as examples (#33437) 2017-11-30 14:04:09 -08:00
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) 2018-05-31 12:25:15 +05:30
network Issue #39860: Add 'not_contains' method to parsing.py (#39874) 2018-06-27 10:21:17 +05:30
parsing Consolidate boolean/mk_boolean conversion functions into a single location 2017-07-17 11:48:05 -07:00
urls Add requests.Session like class (#37622) 2018-06-01 11:44:20 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
conftest.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
test_database.py Revert "Update galaxy and database unit tests." 2017-02-09 15:19:01 -08:00
test_distribution_version.py facts: suse: Fix major version detection for SUSE (#41416) 2018-06-18 09:53:50 -04:00
test_known_hosts.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
test_postgresql.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
test_text.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00