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
Adrian Likins 6e585bdf24
Fact collector ordering deps (#31362)
Add deps/requires for fact collectors

Fact collectors can now set a required_facts
class attribute that will be a set of the names
of fact collectors they require to be run first.

ie, if a collector needs to know the ansible_distribution,
it should set it's required_facts to include 'distribution'

        required_facts = set(['distribution'])

If a collector requires another collector, it gets added
to the selected collector names.

We then topological sort the ordering of the collectors
so that deps work out (ie, 'distribution' will run before
'service_mgr')

required_facts were added to the collectors for:

        - network (requires 'distribution', 'platform')
        - hardware (requires 'platform')
        - service_mgr (requires 'distribution', 'platform')

Fix name references for facts (need 'ansible_' prefix)
is service_mgr

Fixes #30753
7 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 If check mode enabled and file missing set changed to true 32676 (#33967) 7 years ago
cloud [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 7 years ago
ec2 Route table boto3 (#32059) 7 years ago
facts Fact collector ordering deps (#31362) 7 years ago
gcp Fix dangerous default args. (#29839) 7 years ago
json_utils Port some tests away from nose as examples (#33437) 7 years ago
net_tools Add support for Infoblox NIOS (#35097) 7 years ago
network Add Python 3.7 to CI unit test matrix. (#34680) 7 years ago
parsing Consolidate boolean/mk_boolean conversion functions into a single location 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 distribution clear linux 31501 (#32453) 7 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