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
James Cammarata 8218591fec Track notified handlers by object rather than simply their name
Due to the fact that roles may be instantiated with different sets of
params (multiple inclusions of the same role or via role dependencies),
simply tracking notified handlers by name does not work. This patch
changes the way we track handler notifications by using the handler
object itself instead of just the name, allowing for multiple internal
instances. Normally this would be bad, but we also modify the way we
search for handlers by first looking at the notifying tasks dependency
chain (ensuring that roles find their own handlers first) and then at
the main list of handlers, using the first match it finds.

This patch also modifies the way we setup the internal list of handlers,
which should allow us to correctly identify if a notified handler exists
more easily.

Fixes #15084
2016-06-20 09:30:20 -05:00
..
cli galaxy info displayed 'galaxy_info' section wrong 2016-05-31 13:28:15 -04:00
contrib Add a new vmware inventory script backed by pyvmomi (#15967) 2016-05-30 20:41:48 -04:00
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor Test that task.args are also set properly (#15950) 2016-06-01 13:28:57 -07:00
inventory Changing up how host (in)equality is checked 2015-12-04 12:57:46 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Fix mock loader for osx /etc symlinks (#16074) 2016-05-31 18:02:39 -04:00
module_utils Fix distro detection for Solaris derivatives 2016-06-17 16:54:52 -04:00
modules docker was deprecated, test now reflects new name 2016-05-26 09:12:23 -04:00
parsing New unit tests for #13630 fix 2016-03-28 15:54:07 -04:00
playbook Fix mock loader for osx /etc symlinks (#16074) 2016-05-31 18:02:39 -04:00
plugins Track notified handlers by object rather than simply their name 2016-06-20 09:30:20 -05:00
template Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
utils Python 3: shlex.split() wants unicode 2015-09-24 12:36:05 +03:00
vars Adding unit tests for playbook group/host vars 2016-06-06 10:52:39 -05:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00