summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2025-01-14 18:27:39 +0100
committerGitHub <noreply@github.com>2025-01-14 18:27:39 +0100
commit5623a386c1073f172d24b45f1b4582b092895e68 (patch)
tree4777fb89ab0383e7ab437d7936534c9d638e42ec
parentansible-test - Use urllib intead of curl (#84551) (diff)
downloadansible-5623a386c1073f172d24b45f1b4582b092895e68.tar.xz
ansible-5623a386c1073f172d24b45f1b4582b092895e68.zip
Fix unit and integration tests (#84554)
This is a follow-up to https://github.com/ansible/ansible/pull/84473
-rw-r--r--test/integration/targets/loops/tasks/main.yml2
-rw-r--r--test/units/template/test_templar.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/targets/loops/tasks/main.yml b/test/integration/targets/loops/tasks/main.yml
index 1f1888f8f9..4eed8dbc67 100644
--- a/test/integration/targets/loops/tasks/main.yml
+++ b/test/integration/targets/loops/tasks/main.yml
@@ -220,7 +220,7 @@
- assert:
that:
- with_dict_passed_a_list is failed
- - '"with_dict expects a dict" in with_dict_passed_a_list.msg'
+ - '"lookup plugin expects a dictionary" in with_dict_passed_a_list.msg'
- debug:
msg: "with_list passed a dict: {{item}}"
with_list: "{{ a_dict }}"
diff --git a/test/units/template/test_templar.py b/test/units/template/test_templar.py
index 920b64fa36..03fe950724 100644
--- a/test/units/template/test_templar.py
+++ b/test/units/template/test_templar.py
@@ -304,14 +304,14 @@ class TestTemplarLookup(BaseTemplar, unittest.TestCase):
def test_lookup_jinja_dict_string_passed(self):
self.assertRaisesRegex(AnsibleError,
- "with_dict expects a dict",
+ "lookup plugin expects a dictionary",
self.templar._lookup,
'dict',
'{{ some_var }}')
def test_lookup_jinja_dict_list_passed(self):
self.assertRaisesRegex(AnsibleError,
- "with_dict expects a dict",
+ "lookup plugin expects a dictionary",
self.templar._lookup,
'dict',
['foo', 'bar'])