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
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
2018-01-22 18:23:40 -05:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
compile Fix Python 3.7 syntax error in yum_repository. 2018-01-09 17:54:10 -08:00
integration Fact collector ordering deps (#31362) 2018-01-22 18:23:40 -05:00
legacy vultr: add integration tests (#35157) 2018-01-21 22:54:12 +01:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Simplify Windows versions in ansible-test. 2018-01-17 16:16:15 -08:00
sanity ACI: Rename aci_intf_policy_* to aci_interface_policy_* (#35170) 2018-01-22 12:40:15 +01:00
units Fact collector ordering deps (#31362) 2018-01-22 18:23:40 -05:00
utils Simplify Windows versions in ansible-test. 2018-01-17 16:16:15 -08:00