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/plugins
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
..
action Fix synchronize+vagrant dest assertions that were incorrect. (#16291) 2016-06-14 19:56:50 -04:00
cache Fixed import typo for memcache module in tests. 2015-12-19 00:08:49 -08:00
callback Squashed commit of the following: 2015-12-29 11:40:18 -05:00
connections lxc connection plugin 2016-05-28 00:15:09 +02:00
filter Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
inventory Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
lookup Fix problem with "=" in the initial file path. 2015-09-09 11:14:31 -07:00
shell Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
strategies Track notified handlers by object rather than simply their name 2016-06-20 09:30:20 -05:00
vars Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
test_plugins.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00