ansible/test/units/plugins
James Cammarata 0871d955fe Reworking iterator logic regarding failed states during always
Previous changes addressed a corner case, which unfortunately introduced
another bug. This patch adds a new flag to the host state (did_rescue) which
is set to true when the rescue portion of a block completes. This flag is
then checked in _check_failed_state() when the fail_state != FAILED_NONE.

This lead to the discovery of another bug - current strategies are not advancing
hosts to ITERATING_COMPLETE after doing a peek at the next task, leaving the
host state in the run_state of the final task. To address this, before gathering
the list of failed hosts in StrategyBase.run(), a final pass through the iterator
for all hosts is done to ensure each host is in its final state. This way, no
strategy derived from StrategyBase has to worry about it and it's handled.

Fixes #17983

(cherry picked from commit ca5b361ad8)
2016-11-18 11:09:36 -06:00
..
action bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834) 2016-10-02 08:03:42 -07: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 docker connection unit tests. 2016-11-09 10:45:47 -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 password lookup py3 plus alikins unittest additions refactoring (#17626) 2016-09-19 11:37:57 -07:00
shell Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
strategies Reworking iterator logic regarding failed states during always 2016-11-18 11:09:36 -06:00
vars Reorganizing plugin unit tests and adding start of strategy tests (v2) 2015-05-18 17:26:59 -07:00
__init__.py
test_plugins.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00