diff options
author | Matt Clay <matt@mystile.com> | 2025-01-14 18:27:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 18:27:39 +0100 |
commit | 5623a386c1073f172d24b45f1b4582b092895e68 (patch) | |
tree | 4777fb89ab0383e7ab437d7936534c9d638e42ec | |
parent | ansible-test - Use urllib intead of curl (#84551) (diff) | |
download | ansible-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.yml | 2 | ||||
-rw-r--r-- | test/units/template/test_templar.py | 4 |
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']) |