ansible/test/units
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
..
cli galaxy unit tests: add missing arg (#33766) 2018-01-04 09:16:56 -08:00
config additional configmanager tests 2017-10-13 20:25:12 -04:00
contrib Update vmware_inventory (#26308) 2017-07-18 07:20:23 -04:00
errors test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
executor Cache tasks as they are queued instead of en masse (#34752) 2018-01-15 09:49:58 -06:00
inventory_test_data/group_vars
mock Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
module_utils Fact collector ordering deps (#31362) 2018-01-22 18:23:40 -05:00
modules 2.5 Plugin Environment support and Testcases for dellos6 modules (#34890) 2018-01-22 12:34:21 +00:00
parsing Support using vault password files that are themselves vault encrypted (#27668) 2018-01-20 14:56:18 -05:00
playbook fixed test to new sig 2018-01-04 11:20:56 -05:00
plugins Ensure that the become password is written on py3 in the ssh connection plugin. Fixes #34727 2018-01-18 09:32:22 -08:00
template Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
utils test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
vars Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
__init__.py
ansible.cfg Fix ansible-test config management. 2017-10-04 12:52:36 -07:00
conftest.py Fix bugs in ansible-test units command. (#24044) 2017-04-27 11:21:11 +08:00
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 2017-06-14 11:08:34 -04:00