summaryrefslogtreecommitdiffstats
path: root/test/units/executor
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2023-05-18 21:49:07 +0200
committerGitHub <noreply@github.com>2023-05-18 21:49:07 +0200
commit8db9bd757444fba6dd23fcb067e261d877926a33 (patch)
tree6409b7bb8ee20d6efe02e77d9d24073684add0d9 /test/units/executor
parentcommand - Add option to disable argument var expansion (#80512) (diff)
downloadansible-8db9bd757444fba6dd23fcb067e261d877926a33.tar.xz
ansible-8db9bd757444fba6dd23fcb067e261d877926a33.zip
Remove deprecated include (#80752)
* Remove deprecated include * Add tombstone entry for include * Use string for date * Use todays date * Remove uneeded if statement
Diffstat (limited to 'test/units/executor')
-rw-r--r--test/units/executor/test_play_iterator.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/units/executor/test_play_iterator.py b/test/units/executor/test_play_iterator.py
index 23301da0ef..d08cfda16c 100644
--- a/test/units/executor/test_play_iterator.py
+++ b/test/units/executor/test_play_iterator.py
@@ -86,7 +86,8 @@ class TestPlayIterator(unittest.TestCase):
always:
- name: role always task
debug: msg="always task in block in role"
- - include: foo.yml
+ - name: role include_tasks
+ include_tasks: foo.yml
- name: role task after include
debug: msg="after include in role"
- block:
@@ -171,12 +172,12 @@ class TestPlayIterator(unittest.TestCase):
self.assertIsNotNone(task)
self.assertEqual(task.name, "role always task")
self.assertIsNotNone(task._role)
- # role include task
- # (host_state, task) = itr.get_next_task_for_host(hosts[0])
- # self.assertIsNotNone(task)
- # self.assertEqual(task.action, 'debug')
- # self.assertEqual(task.name, "role included task")
- # self.assertIsNotNone(task._role)
+ # role include_tasks
+ (host_state, task) = itr.get_next_task_for_host(hosts[0])
+ self.assertIsNotNone(task)
+ self.assertEqual(task.action, 'include_tasks')
+ self.assertEqual(task.name, "role include_tasks")
+ self.assertIsNotNone(task._role)
# role task after include
(host_state, task) = itr.get_next_task_for_host(hosts[0])
self.assertIsNotNone(task)