diff options
author | James Cammarata <jimi@sngx.net> | 2018-01-15 16:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 16:49:58 +0100 |
commit | b107e397cbd75d8e095b08495da2ac2aad3ef96f (patch) | |
tree | fc345432aecb5e152fe2d6d1dec625967d784581 /test/units/executor | |
parent | Extend validate-modules to check the next to last line (#34819) (diff) | |
download | ansible-b107e397cbd75d8e095b08495da2ac2aad3ef96f.tar.xz ansible-b107e397cbd75d8e095b08495da2ac2aad3ef96f.zip |
Cache tasks as they are queued instead of en masse (#34752)
* Cache tasks as they are queued instead of en masse
This also moves the task caching from the PlayIterator to the
StrategyBase class, where it makes more sense (and makes it easier
to not have to change the strategy class methods leading to an API
change).
Fixes #31673
* Cleaning up unit tests due to 502ca780
Diffstat (limited to 'test/units/executor')
-rw-r--r-- | test/units/executor/test_play_iterator.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/units/executor/test_play_iterator.py b/test/units/executor/test_play_iterator.py index 7e920ea132..525944185d 100644 --- a/test/units/executor/test_play_iterator.py +++ b/test/units/executor/test_play_iterator.py @@ -155,16 +155,6 @@ class TestPlayIterator(unittest.TestCase): all_vars=dict(), ) - # lookup up an original task - target_task = p._entries[0].tasks[0].block[0] - task_copy = target_task.copy(exclude_parent=True) - found_task = itr.get_original_task(hosts[0], task_copy) - self.assertEqual(target_task, found_task) - - bad_task = Task() - found_task = itr.get_original_task(hosts[0], bad_task) - self.assertIsNone(found_task) - # pre task (host_state, task) = itr.get_next_task_for_host(hosts[0]) self.assertIsNotNone(task) |