ansible/test/units/plugins
James Cammarata 43d1ea0cfc 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-14 22:34:51 -05:00
..
action raw should not use default executable (#16085) 2016-06-10 11:41:49 -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 Fix ssh connection unittests for python3.4 2016-03-09 11:14:02 -08: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-14 22:34:51 -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 11:15:24 -07:00